From 9fa95594c29c2f6ca70344b6f56b44fe7c48e7d7 Mon Sep 17 00:00:00 2001 From: DRC Date: Fri, 25 Feb 2011 00:23:44 +0000 Subject: [PATCH] Use a proper version script for libturbojpeg git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@442 632fc199-4ca6-4c93-a231-07263d6284db --- Makefile.am | 7 +------ configure.ac | 25 +------------------------ turbojpeg-mapfile | 10 ++++++++-- turbojpeg-mapfile.jni | 21 ++++++++++++++++----- 4 files changed, 26 insertions(+), 37 deletions(-) diff --git a/Makefile.am b/Makefile.am index 312ec41..30c9c6d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -50,14 +50,9 @@ endif libturbojpeg_la_SOURCES += $(TJMAPFILE) -if ANON_VERSION_SCRIPT - -libturbojpeg_la_LDFLAGS += $(ANON_VERSION_SCRIPT_FLAG)$(srcdir)/$(TJMAPFILE) - -endif - if VERSION_SCRIPT +libturbojpeg_la_LDFLAGS += $(VERSION_SCRIPT_FLAG)$(srcdir)/$(TJMAPFILE) libjpeg_la_LDFLAGS += $(VERSION_SCRIPT_FLAG)libjpeg.map endif diff --git a/configure.ac b/configure.ac index 84fca81..ec1d45d 100644 --- a/configure.ac +++ b/configure.ac @@ -168,36 +168,13 @@ if test "x$VERSION_SCRIPT_FLAG" = "x"; then VERSION_SCRIPT=no AC_MSG_RESULT(no) fi - -ANON_VERSION_SCRIPT=yes -AC_MSG_CHECKING([whether the linker supports anonymous version scripts]) -LDFLAGS="$SAVED_LDFLAGS -Wl,--version-script,conftest.map" -cat > conftest.map <