From: Guillem Jover Date: Sun, 24 Jul 2005 23:55:15 +0000 (+0000) Subject: Add versioned symbols support X-Git-Tag: 0.0~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa605d5f8621f8fe2f96cb4f946c5e11dad885b2;p=thirdparty%2Flibbsd.git Add versioned symbols support --- diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..f7f21be --- /dev/null +++ b/ChangeLog @@ -0,0 +1,5 @@ +2005-07-25 Guillem Jover + + * Versions: New file. + * Makefile: Add versioned symbols support. + diff --git a/Makefile b/Makefile index c80e183..790a2d6 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,10 @@ $(LIB_SONAME): $(LIB_SHARED) ln -fs $^ $@ $(LIB_SHARED): $(LIB_SHARED_OBJS) - gcc -shared -Wl,-soname -Wl,$(LIB_SONAME) -o $@ $^ + gcc -shared \ + -Wl,-soname -Wl,$(LIB_SONAME) \ + -Wl,--version-script=Versions \ + -o $@ $^ install: libs mkdir -p $(DESTDIR)/usr/lib/ diff --git a/Versions b/Versions new file mode 100644 index 0000000..87cf983 --- /dev/null +++ b/Versions @@ -0,0 +1,10 @@ +LIBBSD_0.0 { + global: + arc4random; + fgetln; + inet_net_pton; + strlcpy; + strlcat; + local: + *; +};