From ef142cd0ba5e60baee56b8aaafac9a835958a679 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 10 Aug 2016 21:06:04 -0400 Subject: Shared library symbol versioning support from Ondrej Sury (thanks!). Apparently this is how the cool kids handle hiding library-internal symbols now, using objcopy is old hat. Ondrey tells us that this should work on GNU/Linux and on *BSD, which, at the moment, just leaves OSX, which we already handle with an OSX-specific kludge. --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 95fce05..0eb86e3 100644 --- a/Makefile +++ b/Makefile @@ -179,9 +179,7 @@ ifeq "${UNAME}" "Darwin" else ${SONAME}: pkcs11.o ${LIBS} - ${CC} ${CFLAGS} -shared -o $@.tmp $^ ${SOFLAGS} ${LDFLAGS} - ${OBJCOPY} -w -G 'C_*' $@.tmp $@ - rm -f $@.tmp + ${CC} ${CFLAGS} -Wl,--version-script=libcryptech-pkcs11.map -shared -o $@ $^ ${SOFLAGS} ${LDFLAGS} endif -- cgit v1.2.3