Restrict the list of exported symbols to sk_.*
authorMichael Biebl <biebl@debian.org>
Tue, 27 Oct 2009 21:53:50 +0000 (22:53 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 27 Oct 2009 21:53:50 +0000 (22:53 +0100)
Use libtools' -export-symbols-regex to restrict the list of exported
symbols so we not accidentally export symbols like init_smart

Makefile.am

index 381e920..b5f9476 100644 (file)
@@ -83,7 +83,8 @@ sktest_LDADD = \
 libatasmart_la_SOURCES = \
        atasmart.strpool.c atasmart.h
 libatasmart_la_LDFLAGS = \
-       -version-info $(LIBATASMART_VERSION_INFO)
+       -version-info $(LIBATASMART_VERSION_INFO) \
+       -export-symbols-regex '(^sk_.*)'
 libatasmart_la_LIBADD = \
        $(LIBUDEV_LIBS)
 libatasmart_la_CFLAGS = \