libopkg: stop exporting random symbols into the wild
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:07:12 +0000 (05:07 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:07:12 +0000 (05:07 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@68 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/Makefile.am

index e8163173ec17fbd983a433fb004b843629766db0..f751195dbad138cf7c153cae15c2f9c0533c6bd6 100644 (file)
@@ -29,6 +29,9 @@ libopkg_include_HEADERS= \
 
 libopkg_la_LIBADD = $(top_builddir)/libbb/libbb.la $(CURL_LIBS) $(GPGME_LIBS)
 
+# make sure we only export symbols that are for public use
+libopkg_la_LDFLAGS = -export-symbols-regex "^opkg_.*"
+
 opkg_core_sources = args.c args.h \
                    user.c user.h 
 opkg_libcore_sources = args.c args.h libopkg.c libopkg.h\