]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Add versioned symbols support
authorGuillem Jover <guillem@hadrons.org>
Sun, 24 Jul 2005 23:55:15 +0000 (23:55 +0000)
committerGuillem Jover <guillem@hadrons.org>
Tue, 6 May 2008 05:42:46 +0000 (08:42 +0300)
ChangeLog [new file with mode: 0644]
Makefile
Versions [new file with mode: 0644]

diff --git a/ChangeLog b/ChangeLog
new file mode 100644 (file)
index 0000000..f7f21be
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,5 @@
+2005-07-25  Guillem Jover  <guillem@debian.org>
+
+       * Versions: New file.
+       * Makefile: Add versioned symbols support.
+
index c80e183ca2a0dbbe6a962124c36ea4afca9c634d..790a2d6b8b7489e1140ac9d9be34dd6b8bf4ec7d 100644 (file)
--- 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 (file)
index 0000000..87cf983
--- /dev/null
+++ b/Versions
@@ -0,0 +1,10 @@
+LIBBSD_0.0 {
+  global:
+    arc4random;
+    fgetln;
+    inet_net_pton;
+    strlcpy;
+    strlcat;
+  local:
+    *;
+};