From: Guus Sliepen Date: Thu, 24 Apr 2014 14:04:34 +0000 (+0200) Subject: Only export symbols that start with meshlink_. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=35cbcab5e38ad286dfe85c6958b47a87c8885c41;p=meshlink Only export symbols that start with meshlink_. We don't want to pollute the global namespace with all our internal functions. --- diff --git a/src/Makefile.am b/src/Makefile.am index 6f7cd795..9a92c422 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 \