Build libturbojpeg.so using mapfile on Solaris
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@115 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
@@ -21,7 +21,7 @@ libturbojpeg_la_SOURCES = $(libjpeg_la_SOURCES) turbojpegl.c turbojpeg.h \
|
|||||||
|
|
||||||
if VERSION_SCRIPT
|
if VERSION_SCRIPT
|
||||||
|
|
||||||
libturbojpeg_la_LDFLAGS += -Wl,--version-script,$(srcdir)/turbojpeg-mapfile
|
libturbojpeg_la_LDFLAGS += $(VERSION_SCRIPT_FLAG)$(srcdir)/turbojpeg-mapfile
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
16
configure.ac
16
configure.ac
@@ -27,15 +27,25 @@ AC_PROG_LIBTOOL
|
|||||||
AC_PROG_LN_S
|
AC_PROG_LN_S
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether the linker supports version scripts])
|
AC_MSG_CHECKING([whether the linker supports version scripts])
|
||||||
LDVER=`$LD --help < /dev/null 2>/dev/null | grep version-script`
|
VERSION_SCRIPT=no
|
||||||
|
LDVER=`$LD --help </dev/null 2>&1 | grep "\-\-version-script"`
|
||||||
if test "$LDVER"; then
|
if test "$LDVER"; then
|
||||||
VERSION_SCRIPT=yes
|
VERSION_SCRIPT=yes
|
||||||
|
VERSION_SCRIPT_FLAG=-Wl,--version-script,
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
else
|
else
|
||||||
VERSION_SCRIPT=no
|
LDVER=`$LD --help </dev/null 2>&1 | grep "\-M"`
|
||||||
AC_MSG_RESULT(no)
|
if test "$LDVER"; then
|
||||||
|
VERSION_SCRIPT=yes
|
||||||
|
VERSION_SCRIPT_FLAG=-Wl,-M,
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL(VERSION_SCRIPT, test "x$VERSION_SCRIPT" = "xyes")
|
AM_CONDITIONAL(VERSION_SCRIPT, test "x$VERSION_SCRIPT" = "xyes")
|
||||||
|
AC_SUBST(VERSION_SCRIPT_FLAG)
|
||||||
|
|
||||||
if test "x${GCC}" = "xyes"; then
|
if test "x${GCC}" = "xyes"; then
|
||||||
if test "x${SAVED_CFLAGS}" = "x"; then
|
if test "x${SAVED_CFLAGS}" = "x"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user