summaryrefslogtreecommitdiffstats
path: root/kerberos5/lib/libkafs5
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2012-04-08 04:22:09 +0000
committerstas <stas@FreeBSD.org>2012-04-08 04:22:09 +0000
commitdad11110002a6b84d85da8ce28a358f51cad2d51 (patch)
tree6cd633439b0accd59f5d239af869b258694a678f /kerberos5/lib/libkafs5
parentf5f18fea0eba5a0b1ed9857b094aa84805724afc (diff)
downloadFreeBSD-src-dad11110002a6b84d85da8ce28a358f51cad2d51.zip
FreeBSD-src-dad11110002a6b84d85da8ce28a358f51cad2d51.tar.gz
- Add a "real" symbol version map to libasn1. The upstream version
of the version map just exported all the symbols, which caused a binutils bug being triggered when ld fails to link two objects, one of which exports a versioned version of the symbol, and another -- unversioned. [1] - Also add version map for libkafs5. Submitted by: jchandra@ (based on)
Diffstat (limited to 'kerberos5/lib/libkafs5')
-rw-r--r--kerberos5/lib/libkafs5/Makefile13
-rw-r--r--kerberos5/lib/libkafs5/version.map22
2 files changed, 25 insertions, 10 deletions
diff --git a/kerberos5/lib/libkafs5/Makefile b/kerberos5/lib/libkafs5/Makefile
index d17b6b8..d1faae7 100644
--- a/kerberos5/lib/libkafs5/Makefile
+++ b/kerberos5/lib/libkafs5/Makefile
@@ -1,19 +1,12 @@
# $FreeBSD$
LIB= kafs5
-LDADD= -lasn1 -lroken
+LDADD= -lasn1 -lroken -lkrb5
+LDFLAGS= -Wl,--no-undefined
DPADD= ${LIBASN1} ${LIBKRB5} ${LIBROKEN}
INCS= kafs.h
MAN= kafs5.3
-
-#
-# Linking with libkrb5 uncovers a bug in binutils.
-# See http://repo.or.cz/w/binutils.git/commit/ee05170bf71819c99cb5a36a44735c231ae03c56 .
-#
-.if ${MACHINE} != "mips"
-LDADD+= -lkrb5
-LDFLAGS= -Wl,--no-undefined
-.endif
+VERSION_MAP= ${.CURDIR}/version.map
MLINKS= kafs5.3 k_afs_cell_of_file.3 \
kafs5.3 k_hasafs.3 \
diff --git a/kerberos5/lib/libkafs5/version.map b/kerberos5/lib/libkafs5/version.map
new file mode 100644
index 0000000..1e7b0a8
--- /dev/null
+++ b/kerberos5/lib/libkafs5/version.map
@@ -0,0 +1,22 @@
+#
+# $FreeBSD$
+#
+HEIMDAL_KAFS5_1.0 {
+ global:
+ k_afs_cell_of_file;
+ k_hasafs;
+ k_hasafs_recheck;
+ k_pioctl;
+ k_setpag;
+ k_unlog;
+ kafs_set_verbose;
+ kafs_settoken5;
+ kafs_settoken_rxkad;
+ krb5_afslog;
+ krb5_afslog_home;
+ krb5_afslog_uid;
+ krb5_afslog_uid_home;
+ krb5_realm_of_cell;
+ local:
+ *;
+};
OpenPOWER on IntegriCloud