Add versioned symbols support

This commit is contained in:
Guillem Jover 2005-07-24 23:55:15 +00:00
parent 07a58e79ab
commit aa605d5f86
3 changed files with 19 additions and 1 deletions

5
ChangeLog Normal file
View File

@ -0,0 +1,5 @@
2005-07-25 Guillem Jover <guillem@debian.org>
* Versions: New file.
* Makefile: Add versioned symbols support.

View File

@ -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/

10
Versions Normal file
View File

@ -0,0 +1,10 @@
LIBBSD_0.0 {
global:
arc4random;
fgetln;
inet_net_pton;
strlcpy;
strlcat;
local:
*;
};