]> git.meshlink.io Git - meshlink/commitdiff
Only export symbols that start with meshlink_.
authorGuus Sliepen <guus@meshlink.io>
Thu, 24 Apr 2014 14:04:34 +0000 (16:04 +0200)
committerGuus Sliepen <guus@meshlink.io>
Thu, 24 Apr 2014 14:04:34 +0000 (16:04 +0200)
We don't want to pollute the global namespace with all our internal functions.

src/Makefile.am

index 6f7cd7956d512d8cb73fe2f6ece355745d913ff7..9a92c422ef4d9fc7842d69fc64ce8bf928ecadf5 100644 (file)
@@ -56,6 +56,8 @@ sptps_speed_SOURCES = \
 
 lib_LTLIBRARIES = libmeshlink.la
 
+libmeshlink_la_LDFLAGS = -export-symbols-regex '^meshlink_'
+
 libmeshlink_la_SOURCES = \
        meshlink.c meshlink.h \
        buffer.c buffer.h \