re PR libffi/70024 (libffi ABI change w/o SONAME bump)
PR libffi/70024 * Makefile.am (libffi_version_script): New. (libffi_version_dep): New. (libffi_version_info): New. (libffi_la_LDFLAGS): Include libffi_version_info, libffi_version_script. (libffi_la_DEPENDENCIES): Include libffi_version_dep. * acinclude.m4 (LIBAT_ENABLE, LIBAT_CHECK_LINKER_FEATURES): New. (LIBAT_ENABLE_SYMVERS, LIBAT_BUILD_VERSIONED_SHLIB): New. (LIBAT_BUILD_VERSIONED_SHLIB_GNU): New. (LIBAT_BUILD_VERSIONED_SHLIB_SUN): New. * configure.ac: Invoke LIBAT_ENABLE_SYMVERS. * libffi.map: New file. * libtool-version: Increase to 5.0.0. * Makefile.in, configure: Rebuild. * man/Makefile.in, testsuite/Makefile.in: Rebuild. From-SVN: r233921
This commit is contained in:
parent
9d83ef7171
commit
2c05525623
|
@ -1,3 +1,21 @@
|
||||||
|
2016-03-02 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
|
PR libffi/70024
|
||||||
|
* Makefile.am (libffi_version_script): New.
|
||||||
|
(libffi_version_dep): New.
|
||||||
|
(libffi_version_info): New.
|
||||||
|
(libffi_la_LDFLAGS): Include libffi_version_info, libffi_version_script.
|
||||||
|
(libffi_la_DEPENDENCIES): Include libffi_version_dep.
|
||||||
|
* acinclude.m4 (LIBAT_ENABLE, LIBAT_CHECK_LINKER_FEATURES): New.
|
||||||
|
(LIBAT_ENABLE_SYMVERS, LIBAT_BUILD_VERSIONED_SHLIB): New.
|
||||||
|
(LIBAT_BUILD_VERSIONED_SHLIB_GNU): New.
|
||||||
|
(LIBAT_BUILD_VERSIONED_SHLIB_SUN): New.
|
||||||
|
* configure.ac: Invoke LIBAT_ENABLE_SYMVERS.
|
||||||
|
* libffi.map: New file.
|
||||||
|
* libtool-version: Increase to 5.0.0.
|
||||||
|
* Makefile.in, configure: Rebuild.
|
||||||
|
* man/Makefile.in, testsuite/Makefile.in: Rebuild.
|
||||||
|
|
||||||
2015-10-26 John David Anglin <danglin@gcc.gnu.org>
|
2015-10-26 John David Anglin <danglin@gcc.gnu.org>
|
||||||
|
|
||||||
PR libffi/65441
|
PR libffi/65441
|
||||||
|
|
|
@ -188,7 +188,6 @@ EXTRA_libffi_la_SOURCES = \
|
||||||
|
|
||||||
TARGET_OBJ = @TARGET_OBJ@
|
TARGET_OBJ = @TARGET_OBJ@
|
||||||
libffi_la_LIBADD = $(TARGET_OBJ)
|
libffi_la_LIBADD = $(TARGET_OBJ)
|
||||||
libffi_la_DEPENDENCIES = $(TARGET_OBJ)
|
|
||||||
|
|
||||||
libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
|
libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
|
||||||
EXTRA_libffi_convenience_la_SOURCES = $(EXTRA_libffi_la_SOURCES)
|
EXTRA_libffi_convenience_la_SOURCES = $(EXTRA_libffi_la_SOURCES)
|
||||||
|
@ -205,7 +204,32 @@ if FFI_DEBUG
|
||||||
AM_CFLAGS += -DFFI_DEBUG
|
AM_CFLAGS += -DFFI_DEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libffi_la_LDFLAGS = -no-undefined -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
|
if LIBAT_BUILD_VERSIONED_SHLIB
|
||||||
|
if LIBAT_BUILD_VERSIONED_SHLIB_GNU
|
||||||
|
libffi_version_script = -Wl,--version-script,$(top_srcdir)/libffi.map
|
||||||
|
libffi_version_dep = $(top_srcdir)/libffi.map
|
||||||
|
endif
|
||||||
|
if LIBAT_BUILD_VERSIONED_SHLIB_SUN
|
||||||
|
libffi_version_script = -Wl,-M,libffi.map-sun
|
||||||
|
libffi_version_dep = libffi.map-sun
|
||||||
|
libffi.map-sun : $(top_srcdir)/libffi.map \
|
||||||
|
$(top_srcdir)/../contrib/make_sunver.pl \
|
||||||
|
$(libffi_la_OBJECTS) $(libffi_la_LIBADD)
|
||||||
|
perl $(top_srcdir)/../contrib/make_sunver.pl \
|
||||||
|
$(top_srcdir)/libffi.map \
|
||||||
|
$(libffi_la_OBJECTS:%.lo=.libs/%.o) \
|
||||||
|
`echo $(libffi_la_LIBADD) | \
|
||||||
|
sed 's,\([^/ ]*\)\.l\([ao]\),.libs/\1.\2,g'` \
|
||||||
|
> $@ || (rm -f $@ ; exit 1)
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
libffi_version_script =
|
||||||
|
libffi_version_dep =
|
||||||
|
endif
|
||||||
|
libffi_version_info = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
|
||||||
|
|
||||||
|
libffi_la_LDFLAGS = -no-undefined $(libffi_version_info) $(libffi_version_script) $(LTLDFLAGS) $(AM_LTLDFLAGS)
|
||||||
|
libffi_la_DEPENDENCIES = $(libffi_la_LIBADD) $(libffi_version_dep)
|
||||||
|
|
||||||
AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
|
AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
|
||||||
AM_CCASFLAGS = $(AM_CPPFLAGS)
|
AM_CCASFLAGS = $(AM_CPPFLAGS)
|
||||||
|
|
|
@ -248,6 +248,7 @@ NM = @NM@
|
||||||
NMEDIT = @NMEDIT@
|
NMEDIT = @NMEDIT@
|
||||||
OBJDUMP = @OBJDUMP@
|
OBJDUMP = @OBJDUMP@
|
||||||
OBJEXT = @OBJEXT@
|
OBJEXT = @OBJEXT@
|
||||||
|
OPT_LDFLAGS = @OPT_LDFLAGS@
|
||||||
OTOOL = @OTOOL@
|
OTOOL = @OTOOL@
|
||||||
OTOOL64 = @OTOOL64@
|
OTOOL64 = @OTOOL64@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
|
@ -259,6 +260,7 @@ PACKAGE_URL = @PACKAGE_URL@
|
||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
|
SECTION_LDFLAGS = @SECTION_LDFLAGS@
|
||||||
SED = @SED@
|
SED = @SED@
|
||||||
SET_MAKE = @SET_MAKE@
|
SET_MAKE = @SET_MAKE@
|
||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
|
@ -478,7 +480,6 @@ EXTRA_libffi_la_SOURCES = \
|
||||||
src/xtensa/ffi.c src/xtensa/sysv.S
|
src/xtensa/ffi.c src/xtensa/sysv.S
|
||||||
|
|
||||||
libffi_la_LIBADD = $(TARGET_OBJ)
|
libffi_la_LIBADD = $(TARGET_OBJ)
|
||||||
libffi_la_DEPENDENCIES = $(TARGET_OBJ)
|
|
||||||
libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
|
libffi_convenience_la_SOURCES = $(libffi_la_SOURCES)
|
||||||
EXTRA_libffi_convenience_la_SOURCES = $(EXTRA_libffi_la_SOURCES)
|
EXTRA_libffi_convenience_la_SOURCES = $(EXTRA_libffi_la_SOURCES)
|
||||||
libffi_convenience_la_LIBADD = $(libffi_la_LIBADD)
|
libffi_convenience_la_LIBADD = $(libffi_la_LIBADD)
|
||||||
|
@ -486,7 +487,15 @@ libffi_convenience_la_DEPENDENCIES = $(libffi_la_DEPENDENCIES)
|
||||||
nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
|
nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
|
||||||
LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
|
LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
|
||||||
AM_CFLAGS = -Wall -g -fexceptions $(am__append_2)
|
AM_CFLAGS = -Wall -g -fexceptions $(am__append_2)
|
||||||
libffi_la_LDFLAGS = -no-undefined -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
|
@LIBAT_BUILD_VERSIONED_SHLIB_FALSE@libffi_version_script =
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@libffi_version_script = -Wl,--version-script,$(top_srcdir)/libffi.map
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@libffi_version_script = -Wl,-M,libffi.map-sun
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_FALSE@libffi_version_dep =
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@libffi_version_dep = $(top_srcdir)/libffi.map
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@libffi_version_dep = libffi.map-sun
|
||||||
|
libffi_version_info = -version-info `grep -v '^\#' $(srcdir)/libtool-version`
|
||||||
|
libffi_la_LDFLAGS = -no-undefined $(libffi_version_info) $(libffi_version_script) $(LTLDFLAGS) $(AM_LTLDFLAGS)
|
||||||
|
libffi_la_DEPENDENCIES = $(libffi_la_LIBADD) $(libffi_version_dep)
|
||||||
AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
|
AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
|
||||||
AM_CCASFLAGS = $(AM_CPPFLAGS)
|
AM_CCASFLAGS = $(AM_CPPFLAGS)
|
||||||
all: fficonfig.h
|
all: fficonfig.h
|
||||||
|
@ -1892,6 +1901,15 @@ doc/libffi.info: $(STAMP_BUILD_INFO)
|
||||||
stamp-build-info: doc/libffi.texi $(srcdir)/doc/version.texi doc/$(am__dirstamp)
|
stamp-build-info: doc/libffi.texi $(srcdir)/doc/version.texi doc/$(am__dirstamp)
|
||||||
$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)/doc -o doc/libffi.info $(srcdir)/doc/libffi.texi
|
$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)/doc -o doc/libffi.info $(srcdir)/doc/libffi.texi
|
||||||
@touch $@
|
@touch $@
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@libffi.map-sun : $(top_srcdir)/libffi.map \
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@ $(top_srcdir)/../contrib/make_sunver.pl \
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@ $(libffi_la_OBJECTS) $(libffi_la_LIBADD)
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@ perl $(top_srcdir)/../contrib/make_sunver.pl \
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@ $(top_srcdir)/libffi.map \
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@ $(libffi_la_OBJECTS:%.lo=.libs/%.o) \
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@ `echo $(libffi_la_LIBADD) | \
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@ sed 's,\([^/ ]*\)\.l\([ao]\),.libs/\1.\2,g'` \
|
||||||
|
@LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE@@LIBAT_BUILD_VERSIONED_SHLIB_TRUE@ > $@ || (rm -f $@ ; exit 1)
|
||||||
|
|
||||||
# Multilib support. Automake should provide these on its own.
|
# Multilib support. Automake should provide these on its own.
|
||||||
all-recursive: all-multi
|
all-recursive: all-multi
|
||||||
|
|
|
@ -90,3 +90,384 @@ if test $ac_cv_func_mmap_anon = yes; then
|
||||||
[Define if mmap with MAP_ANON(YMOUS) works.])
|
[Define if mmap with MAP_ANON(YMOUS) works.])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
dnl ----------------------------------------------------------------------
|
||||||
|
dnl This whole bit snagged from libstdc++-v3, via libatomic.
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl LIBAT_ENABLE
|
||||||
|
dnl (FEATURE, DEFAULT, HELP-ARG, HELP-STRING)
|
||||||
|
dnl (FEATURE, DEFAULT, HELP-ARG, HELP-STRING, permit a|b|c)
|
||||||
|
dnl (FEATURE, DEFAULT, HELP-ARG, HELP-STRING, SHELL-CODE-HANDLER)
|
||||||
|
dnl
|
||||||
|
dnl See docs/html/17_intro/configury.html#enable for documentation.
|
||||||
|
dnl
|
||||||
|
m4_define([LIBAT_ENABLE],[dnl
|
||||||
|
m4_define([_g_switch],[--enable-$1])dnl
|
||||||
|
m4_define([_g_help],[AC_HELP_STRING(_g_switch$3,[$4 @<:@default=$2@:>@])])dnl
|
||||||
|
AC_ARG_ENABLE($1,_g_help,
|
||||||
|
m4_bmatch([$5],
|
||||||
|
[^permit ],
|
||||||
|
[[
|
||||||
|
case "$enableval" in
|
||||||
|
m4_bpatsubst([$5],[permit ])) ;;
|
||||||
|
*) AC_MSG_ERROR(Unknown argument to enable/disable $1) ;;
|
||||||
|
dnl Idea for future: generate a URL pointing to
|
||||||
|
dnl "onlinedocs/configopts.html#whatever"
|
||||||
|
esac
|
||||||
|
]],
|
||||||
|
[^$],
|
||||||
|
[[
|
||||||
|
case "$enableval" in
|
||||||
|
yes|no) ;;
|
||||||
|
*) AC_MSG_ERROR(Argument to enable/disable $1 must be yes or no) ;;
|
||||||
|
esac
|
||||||
|
]],
|
||||||
|
[[$5]]),
|
||||||
|
[enable_]m4_bpatsubst([$1],-,_)[=][$2])
|
||||||
|
m4_undefine([_g_switch])dnl
|
||||||
|
m4_undefine([_g_help])dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl If GNU ld is in use, check to see if tricky linker opts can be used. If
|
||||||
|
dnl the native linker is in use, all variables will be defined to something
|
||||||
|
dnl safe (like an empty string).
|
||||||
|
dnl
|
||||||
|
dnl Defines:
|
||||||
|
dnl SECTION_LDFLAGS='-Wl,--gc-sections' if possible
|
||||||
|
dnl OPT_LDFLAGS='-Wl,-O1' if possible
|
||||||
|
dnl LD (as a side effect of testing)
|
||||||
|
dnl Sets:
|
||||||
|
dnl with_gnu_ld
|
||||||
|
dnl libat_ld_is_gold (possibly)
|
||||||
|
dnl libat_gnu_ld_version (possibly)
|
||||||
|
dnl
|
||||||
|
dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will
|
||||||
|
dnl set libat_gnu_ld_version to 12345. Zeros cause problems.
|
||||||
|
dnl
|
||||||
|
AC_DEFUN([LIBAT_CHECK_LINKER_FEATURES], [
|
||||||
|
# If we're not using GNU ld, then there's no point in even trying these
|
||||||
|
# tests. Check for that first. We should have already tested for gld
|
||||||
|
# by now (in libtool), but require it now just to be safe...
|
||||||
|
test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
|
||||||
|
test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
|
||||||
|
AC_REQUIRE([AC_PROG_LD])
|
||||||
|
AC_REQUIRE([AC_PROG_AWK])
|
||||||
|
|
||||||
|
# The name set by libtool depends on the version of libtool. Shame on us
|
||||||
|
# for depending on an impl detail, but c'est la vie. Older versions used
|
||||||
|
# ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
|
||||||
|
# top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
|
||||||
|
# makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
|
||||||
|
# set (hence we're using an older libtool), then set it.
|
||||||
|
if test x${with_gnu_ld+set} != xset; then
|
||||||
|
if test x${ac_cv_prog_gnu_ld+set} != xset; then
|
||||||
|
# We got through "ac_require(ac_prog_ld)" and still not set? Huh?
|
||||||
|
with_gnu_ld=no
|
||||||
|
else
|
||||||
|
with_gnu_ld=$ac_cv_prog_gnu_ld
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Start by getting the version number. I think the libtool test already
|
||||||
|
# does some of this, but throws away the result.
|
||||||
|
libat_ld_is_gold=no
|
||||||
|
if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
|
||||||
|
libat_ld_is_gold=yes
|
||||||
|
fi
|
||||||
|
changequote(,)
|
||||||
|
ldver=`$LD --version 2>/dev/null |
|
||||||
|
sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
|
||||||
|
changequote([,])
|
||||||
|
libat_gnu_ld_version=`echo $ldver | \
|
||||||
|
$AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'`
|
||||||
|
|
||||||
|
# Set --gc-sections.
|
||||||
|
if test "$with_gnu_ld" = "notbroken"; then
|
||||||
|
# GNU ld it is! Joy and bunny rabbits!
|
||||||
|
|
||||||
|
# All these tests are for C++; save the language and the compiler flags.
|
||||||
|
# Need to do this so that g++ won't try to link in libstdc++
|
||||||
|
ac_test_CFLAGS="${CFLAGS+set}"
|
||||||
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
|
CFLAGS='-x c++ -Wl,--gc-sections'
|
||||||
|
|
||||||
|
# Check for -Wl,--gc-sections
|
||||||
|
# XXX This test is broken at the moment, as symbols required for linking
|
||||||
|
# are now in libsupc++ (not built yet). In addition, this test has
|
||||||
|
# cored on solaris in the past. In addition, --gc-sections doesn't
|
||||||
|
# really work at the moment (keeps on discarding used sections, first
|
||||||
|
# .eh_frame and now some of the glibc sections for iconv).
|
||||||
|
# Bzzzzt. Thanks for playing, maybe next time.
|
||||||
|
AC_MSG_CHECKING([for ld that supports -Wl,--gc-sections])
|
||||||
|
AC_TRY_RUN([
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
try { throw 1; }
|
||||||
|
catch (...) { };
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
], [ac_sectionLDflags=yes],[ac_sectionLDflags=no], [ac_sectionLDflags=yes])
|
||||||
|
if test "$ac_test_CFLAGS" = set; then
|
||||||
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
|
else
|
||||||
|
# this is the suspicious part
|
||||||
|
CFLAGS=''
|
||||||
|
fi
|
||||||
|
if test "$ac_sectionLDflags" = "yes"; then
|
||||||
|
SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($ac_sectionLDflags)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set linker optimization flags.
|
||||||
|
if test x"$with_gnu_ld" = x"yes"; then
|
||||||
|
OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(SECTION_LDFLAGS)
|
||||||
|
AC_SUBST(OPT_LDFLAGS)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl If GNU ld is in use, check to see if tricky linker opts can be used. If
|
||||||
|
dnl the native linker is in use, all variables will be defined to something
|
||||||
|
dnl safe (like an empty string).
|
||||||
|
dnl
|
||||||
|
dnl Defines:
|
||||||
|
dnl SECTION_LDFLAGS='-Wl,--gc-sections' if possible
|
||||||
|
dnl OPT_LDFLAGS='-Wl,-O1' if possible
|
||||||
|
dnl LD (as a side effect of testing)
|
||||||
|
dnl Sets:
|
||||||
|
dnl with_gnu_ld
|
||||||
|
dnl libat_ld_is_gold (possibly)
|
||||||
|
dnl libat_gnu_ld_version (possibly)
|
||||||
|
dnl
|
||||||
|
dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will
|
||||||
|
dnl set libat_gnu_ld_version to 12345. Zeros cause problems.
|
||||||
|
dnl
|
||||||
|
AC_DEFUN([LIBAT_CHECK_LINKER_FEATURES], [
|
||||||
|
# If we're not using GNU ld, then there's no point in even trying these
|
||||||
|
# tests. Check for that first. We should have already tested for gld
|
||||||
|
# by now (in libtool), but require it now just to be safe...
|
||||||
|
test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
|
||||||
|
test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
|
||||||
|
AC_REQUIRE([AC_PROG_LD])
|
||||||
|
AC_REQUIRE([AC_PROG_AWK])
|
||||||
|
|
||||||
|
# The name set by libtool depends on the version of libtool. Shame on us
|
||||||
|
# for depending on an impl detail, but c'est la vie. Older versions used
|
||||||
|
# ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
|
||||||
|
# top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
|
||||||
|
# makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
|
||||||
|
# set (hence we're using an older libtool), then set it.
|
||||||
|
if test x${with_gnu_ld+set} != xset; then
|
||||||
|
if test x${ac_cv_prog_gnu_ld+set} != xset; then
|
||||||
|
# We got through "ac_require(ac_prog_ld)" and still not set? Huh?
|
||||||
|
with_gnu_ld=no
|
||||||
|
else
|
||||||
|
with_gnu_ld=$ac_cv_prog_gnu_ld
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Start by getting the version number. I think the libtool test already
|
||||||
|
# does some of this, but throws away the result.
|
||||||
|
libat_ld_is_gold=no
|
||||||
|
if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
|
||||||
|
libat_ld_is_gold=yes
|
||||||
|
fi
|
||||||
|
changequote(,)
|
||||||
|
ldver=`$LD --version 2>/dev/null |
|
||||||
|
sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
|
||||||
|
changequote([,])
|
||||||
|
libat_gnu_ld_version=`echo $ldver | \
|
||||||
|
$AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'`
|
||||||
|
|
||||||
|
# Set --gc-sections.
|
||||||
|
if test "$with_gnu_ld" = "notbroken"; then
|
||||||
|
# GNU ld it is! Joy and bunny rabbits!
|
||||||
|
|
||||||
|
# All these tests are for C++; save the language and the compiler flags.
|
||||||
|
# Need to do this so that g++ won't try to link in libstdc++
|
||||||
|
ac_test_CFLAGS="${CFLAGS+set}"
|
||||||
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
|
CFLAGS='-x c++ -Wl,--gc-sections'
|
||||||
|
|
||||||
|
# Check for -Wl,--gc-sections
|
||||||
|
# XXX This test is broken at the moment, as symbols required for linking
|
||||||
|
# are now in libsupc++ (not built yet). In addition, this test has
|
||||||
|
# cored on solaris in the past. In addition, --gc-sections doesn't
|
||||||
|
# really work at the moment (keeps on discarding used sections, first
|
||||||
|
# .eh_frame and now some of the glibc sections for iconv).
|
||||||
|
# Bzzzzt. Thanks for playing, maybe next time.
|
||||||
|
AC_MSG_CHECKING([for ld that supports -Wl,--gc-sections])
|
||||||
|
AC_TRY_RUN([
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
try { throw 1; }
|
||||||
|
catch (...) { };
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
], [ac_sectionLDflags=yes],[ac_sectionLDflags=no], [ac_sectionLDflags=yes])
|
||||||
|
if test "$ac_test_CFLAGS" = set; then
|
||||||
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
|
else
|
||||||
|
# this is the suspicious part
|
||||||
|
CFLAGS=''
|
||||||
|
fi
|
||||||
|
if test "$ac_sectionLDflags" = "yes"; then
|
||||||
|
SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($ac_sectionLDflags)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set linker optimization flags.
|
||||||
|
if test x"$with_gnu_ld" = x"yes"; then
|
||||||
|
OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(SECTION_LDFLAGS)
|
||||||
|
AC_SUBST(OPT_LDFLAGS)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Add version tags to symbols in shared library (or not), additionally
|
||||||
|
dnl marking other symbols as private/local (or not).
|
||||||
|
dnl
|
||||||
|
dnl --enable-symvers=style adds a version script to the linker call when
|
||||||
|
dnl creating the shared library. The choice of version script is
|
||||||
|
dnl controlled by 'style'.
|
||||||
|
dnl --disable-symvers does not.
|
||||||
|
dnl + Usage: LIBAT_ENABLE_SYMVERS[(DEFAULT)]
|
||||||
|
dnl Where DEFAULT is either 'yes' or 'no'. Passing `yes' tries to
|
||||||
|
dnl choose a default style based on linker characteristics. Passing
|
||||||
|
dnl 'no' disables versioning.
|
||||||
|
dnl
|
||||||
|
AC_DEFUN([LIBAT_ENABLE_SYMVERS], [
|
||||||
|
|
||||||
|
LIBAT_ENABLE(symvers,yes,[=STYLE],
|
||||||
|
[enables symbol versioning of the shared library],
|
||||||
|
[permit yes|no|gnu*|sun])
|
||||||
|
|
||||||
|
# If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
|
||||||
|
# don't know enough about $LD to do tricks...
|
||||||
|
AC_REQUIRE([LIBAT_CHECK_LINKER_FEATURES])
|
||||||
|
|
||||||
|
# Turn a 'yes' into a suitable default.
|
||||||
|
if test x$enable_symvers = xyes ; then
|
||||||
|
# FIXME The following test is too strict, in theory.
|
||||||
|
if test $enable_shared = no || test "x$LD" = x; then
|
||||||
|
enable_symvers=no
|
||||||
|
else
|
||||||
|
if test $with_gnu_ld = yes ; then
|
||||||
|
enable_symvers=gnu
|
||||||
|
else
|
||||||
|
case ${target_os} in
|
||||||
|
# Sun symbol versioning exists since Solaris 2.5.
|
||||||
|
solaris2.[[5-9]]* | solaris2.1[[0-9]]*)
|
||||||
|
enable_symvers=sun ;;
|
||||||
|
*)
|
||||||
|
enable_symvers=no ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check if 'sun' was requested on non-Solaris 2 platforms.
|
||||||
|
if test x$enable_symvers = xsun ; then
|
||||||
|
case ${target_os} in
|
||||||
|
solaris2*)
|
||||||
|
# All fine.
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# Unlikely to work.
|
||||||
|
AC_MSG_WARN([=== You have requested Sun symbol versioning, but])
|
||||||
|
AC_MSG_WARN([=== you are not targetting Solaris 2.])
|
||||||
|
AC_MSG_WARN([=== Symbol versioning will be disabled.])
|
||||||
|
enable_symvers=no
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
|
||||||
|
if test $enable_symvers != no; then
|
||||||
|
AC_MSG_CHECKING([for shared libgcc])
|
||||||
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
|
CFLAGS=' -lgcc_s'
|
||||||
|
AC_TRY_LINK(, [return 0;], libat_shared_libgcc=yes, libat_shared_libgcc=no)
|
||||||
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
|
if test $libat_shared_libgcc = no; then
|
||||||
|
cat > conftest.c <<EOF
|
||||||
|
int main (void) { return 0; }
|
||||||
|
EOF
|
||||||
|
changequote(,)dnl
|
||||||
|
libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
|
||||||
|
-shared -shared-libgcc -o conftest.so \
|
||||||
|
conftest.c -v 2>&1 >/dev/null \
|
||||||
|
| sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
|
||||||
|
changequote([,])dnl
|
||||||
|
rm -f conftest.c conftest.so
|
||||||
|
if test x${libat_libgcc_s_suffix+set} = xset; then
|
||||||
|
CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
|
||||||
|
AC_TRY_LINK(, [return 0;], libat_shared_libgcc=yes)
|
||||||
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($libat_shared_libgcc)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For GNU ld, we need at least this version. The format is described in
|
||||||
|
# LIBAT_CHECK_LINKER_FEATURES above.
|
||||||
|
libat_min_gnu_ld_version=21400
|
||||||
|
# XXXXXXXXXXX libat_gnu_ld_version=21390
|
||||||
|
|
||||||
|
# Check to see if unspecified "yes" value can win, given results above.
|
||||||
|
# Change "yes" into either "no" or a style name.
|
||||||
|
if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
|
||||||
|
if test $with_gnu_ld = yes; then
|
||||||
|
if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
|
||||||
|
enable_symvers=gnu
|
||||||
|
elif test $libat_ld_is_gold = yes ; then
|
||||||
|
enable_symvers=gnu
|
||||||
|
else
|
||||||
|
# The right tools, the right setup, but too old. Fallbacks?
|
||||||
|
AC_MSG_WARN(=== Linker version $libat_gnu_ld_version is too old for)
|
||||||
|
AC_MSG_WARN(=== full symbol versioning support in this release of GCC.)
|
||||||
|
AC_MSG_WARN(=== You would need to upgrade your binutils to version)
|
||||||
|
AC_MSG_WARN(=== $libat_min_gnu_ld_version or later and rebuild GCC.)
|
||||||
|
if test $libat_gnu_ld_version -ge 21200 ; then
|
||||||
|
# Globbing fix is present, proper block support is not.
|
||||||
|
dnl AC_MSG_WARN([=== Dude, you are soooo close. Maybe we can fake it.])
|
||||||
|
dnl enable_symvers=???
|
||||||
|
AC_MSG_WARN([=== Symbol versioning will be disabled.])
|
||||||
|
enable_symvers=no
|
||||||
|
else
|
||||||
|
# 2.11 or older.
|
||||||
|
AC_MSG_WARN([=== Symbol versioning will be disabled.])
|
||||||
|
enable_symvers=no
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
elif test $enable_symvers = sun; then
|
||||||
|
: All interesting versions of Sun ld support sun style symbol versioning.
|
||||||
|
else
|
||||||
|
# just fail for now
|
||||||
|
AC_MSG_WARN([=== You have requested some kind of symbol versioning, but])
|
||||||
|
AC_MSG_WARN([=== either you are not using a supported linker, or you are])
|
||||||
|
AC_MSG_WARN([=== not building a shared libgcc_s (which is required).])
|
||||||
|
AC_MSG_WARN([=== Symbol versioning will be disabled.])
|
||||||
|
enable_symvers=no
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if test $enable_symvers = gnu; then
|
||||||
|
AC_DEFINE(LIBAT_GNU_SYMBOL_VERSIONING, 1,
|
||||||
|
[Define to 1 if GNU symbol versioning is used for libatomic.])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(LIBAT_BUILD_VERSIONED_SHLIB, test $enable_symvers != no)
|
||||||
|
AM_CONDITIONAL(LIBAT_BUILD_VERSIONED_SHLIB_GNU, test $enable_symvers = gnu)
|
||||||
|
AM_CONDITIONAL(LIBAT_BUILD_VERSIONED_SHLIB_SUN, test $enable_symvers = sun)
|
||||||
|
AC_MSG_NOTICE(versioning on shared library symbols is $enable_symvers)
|
||||||
|
])
|
||||||
|
|
|
@ -604,6 +604,14 @@ ac_subst_vars='am__EXEEXT_FALSE
|
||||||
am__EXEEXT_TRUE
|
am__EXEEXT_TRUE
|
||||||
LTLIBOBJS
|
LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_FALSE
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_TRUE
|
||||||
|
OPT_LDFLAGS
|
||||||
|
SECTION_LDFLAGS
|
||||||
toolexeclibdir
|
toolexeclibdir
|
||||||
toolexecdir
|
toolexecdir
|
||||||
FFI_DEBUG_FALSE
|
FFI_DEBUG_FALSE
|
||||||
|
@ -768,6 +776,7 @@ enable_debug
|
||||||
enable_structs
|
enable_structs
|
||||||
enable_raw_api
|
enable_raw_api
|
||||||
enable_purify_safety
|
enable_purify_safety
|
||||||
|
enable_symvers
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
host_alias
|
host_alias
|
||||||
|
@ -1416,6 +1425,8 @@ Optional Features:
|
||||||
--disable-structs omit code for struct support
|
--disable-structs omit code for struct support
|
||||||
--disable-raw-api make the raw api unavailable
|
--disable-raw-api make the raw api unavailable
|
||||||
--enable-purify-safety purify-safe mode
|
--enable-purify-safety purify-safe mode
|
||||||
|
--enable-symvers=STYLE enables symbol versioning of the shared library
|
||||||
|
[default=yes]
|
||||||
|
|
||||||
Optional Packages:
|
Optional Packages:
|
||||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
|
@ -9347,7 +9358,7 @@ _LT_EOF
|
||||||
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
||||||
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
||||||
else
|
else
|
||||||
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
||||||
fi
|
fi
|
||||||
aix_use_runtimelinking=no
|
aix_use_runtimelinking=no
|
||||||
|
|
||||||
|
@ -11375,7 +11386,7 @@ else
|
||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
||||||
#line 11378 "configure"
|
#line 11389 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
@ -11481,7 +11492,7 @@ else
|
||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<_LT_EOF
|
cat > conftest.$ac_ext <<_LT_EOF
|
||||||
#line 11484 "configure"
|
#line 11495 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
|
@ -13833,7 +13844,7 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
|
||||||
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
||||||
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
||||||
else
|
else
|
||||||
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
pw32*)
|
pw32*)
|
||||||
|
@ -16009,6 +16020,419 @@ else
|
||||||
multilib_arg=
|
multilib_arg=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check linker support.
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --with-gnu-ld was given.
|
||||||
|
if test "${with_gnu_ld+set}" = set; then :
|
||||||
|
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
|
||||||
|
else
|
||||||
|
with_gnu_ld=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
ac_prog=ld
|
||||||
|
if test "$GCC" = yes; then
|
||||||
|
# Check if gcc -print-prog-name=ld gives a path.
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
||||||
|
$as_echo_n "checking for ld used by $CC... " >&6; }
|
||||||
|
case $host in
|
||||||
|
*-*-mingw*)
|
||||||
|
# gcc leaves a trailing carriage return which upsets mingw
|
||||||
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
||||||
|
*)
|
||||||
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
||||||
|
esac
|
||||||
|
case $ac_prog in
|
||||||
|
# Accept absolute paths.
|
||||||
|
[\\/]* | ?:[\\/]*)
|
||||||
|
re_direlt='/[^/][^/]*/\.\./'
|
||||||
|
# Canonicalize the pathname of ld
|
||||||
|
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
||||||
|
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
||||||
|
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
||||||
|
done
|
||||||
|
test -z "$LD" && LD="$ac_prog"
|
||||||
|
;;
|
||||||
|
"")
|
||||||
|
# If it fails, then pretend we aren't using GCC.
|
||||||
|
ac_prog=ld
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# If it is relative, then search for the first ld in PATH.
|
||||||
|
with_gnu_ld=unknown
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
elif test "$with_gnu_ld" = yes; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
||||||
|
$as_echo_n "checking for GNU ld... " >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
||||||
|
$as_echo_n "checking for non-GNU ld... " >&6; }
|
||||||
|
fi
|
||||||
|
if test "${lt_cv_path_LD+set}" = set; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
if test -z "$LD"; then
|
||||||
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
||||||
|
for ac_dir in $PATH; do
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
test -z "$ac_dir" && ac_dir=.
|
||||||
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
||||||
|
lt_cv_path_LD="$ac_dir/$ac_prog"
|
||||||
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
||||||
|
# but apparently some variants of GNU ld only accept -v.
|
||||||
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
||||||
|
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
||||||
|
*GNU* | *'with BFD'*)
|
||||||
|
test "$with_gnu_ld" != no && break
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
test "$with_gnu_ld" != yes && break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
else
|
||||||
|
lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
LD="$lt_cv_path_LD"
|
||||||
|
if test -n "$LD"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
||||||
|
$as_echo "$LD" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
fi
|
||||||
|
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
||||||
|
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
||||||
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
||||||
|
case `$LD -v 2>&1 </dev/null` in
|
||||||
|
*GNU* | *'with BFD'*)
|
||||||
|
lt_cv_prog_gnu_ld=yes
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
lt_cv_prog_gnu_ld=no
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
|
||||||
|
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
|
||||||
|
with_gnu_ld=$lt_cv_prog_gnu_ld
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# If we're not using GNU ld, then there's no point in even trying these
|
||||||
|
# tests. Check for that first. We should have already tested for gld
|
||||||
|
# by now (in libtool), but require it now just to be safe...
|
||||||
|
test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
|
||||||
|
test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# The name set by libtool depends on the version of libtool. Shame on us
|
||||||
|
# for depending on an impl detail, but c'est la vie. Older versions used
|
||||||
|
# ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
|
||||||
|
# top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
|
||||||
|
# makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
|
||||||
|
# set (hence we're using an older libtool), then set it.
|
||||||
|
if test x${with_gnu_ld+set} != xset; then
|
||||||
|
if test x${ac_cv_prog_gnu_ld+set} != xset; then
|
||||||
|
# We got through "ac_require(ac_prog_ld)" and still not set? Huh?
|
||||||
|
with_gnu_ld=no
|
||||||
|
else
|
||||||
|
with_gnu_ld=$ac_cv_prog_gnu_ld
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Start by getting the version number. I think the libtool test already
|
||||||
|
# does some of this, but throws away the result.
|
||||||
|
libat_ld_is_gold=no
|
||||||
|
if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
|
||||||
|
libat_ld_is_gold=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
ldver=`$LD --version 2>/dev/null |
|
||||||
|
sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
|
||||||
|
|
||||||
|
libat_gnu_ld_version=`echo $ldver | \
|
||||||
|
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
|
||||||
|
|
||||||
|
# Set --gc-sections.
|
||||||
|
if test "$with_gnu_ld" = "notbroken"; then
|
||||||
|
# GNU ld it is! Joy and bunny rabbits!
|
||||||
|
|
||||||
|
# All these tests are for C++; save the language and the compiler flags.
|
||||||
|
# Need to do this so that g++ won't try to link in libstdc++
|
||||||
|
ac_test_CFLAGS="${CFLAGS+set}"
|
||||||
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
|
CFLAGS='-x c++ -Wl,--gc-sections'
|
||||||
|
|
||||||
|
# Check for -Wl,--gc-sections
|
||||||
|
# XXX This test is broken at the moment, as symbols required for linking
|
||||||
|
# are now in libsupc++ (not built yet). In addition, this test has
|
||||||
|
# cored on solaris in the past. In addition, --gc-sections doesn't
|
||||||
|
# really work at the moment (keeps on discarding used sections, first
|
||||||
|
# .eh_frame and now some of the glibc sections for iconv).
|
||||||
|
# Bzzzzt. Thanks for playing, maybe next time.
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
|
||||||
|
$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
|
||||||
|
if test "$cross_compiling" = yes; then :
|
||||||
|
ac_sectionLDflags=yes
|
||||||
|
else
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
try { throw 1; }
|
||||||
|
catch (...) { };
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_run "$LINENO"; then :
|
||||||
|
ac_sectionLDflags=yes
|
||||||
|
else
|
||||||
|
ac_sectionLDflags=no
|
||||||
|
fi
|
||||||
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
||||||
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$ac_test_CFLAGS" = set; then
|
||||||
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
|
else
|
||||||
|
# this is the suspicious part
|
||||||
|
CFLAGS=''
|
||||||
|
fi
|
||||||
|
if test "$ac_sectionLDflags" = "yes"; then
|
||||||
|
SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
|
||||||
|
$as_echo "$ac_sectionLDflags" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set linker optimization flags.
|
||||||
|
if test x"$with_gnu_ld" = x"yes"; then
|
||||||
|
OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --enable-symvers was given.
|
||||||
|
if test "${enable_symvers+set}" = set; then :
|
||||||
|
enableval=$enable_symvers;
|
||||||
|
case "$enableval" in
|
||||||
|
yes|no|gnu*|sun) ;;
|
||||||
|
*) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
else
|
||||||
|
enable_symvers=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
|
||||||
|
# don't know enough about $LD to do tricks...
|
||||||
|
|
||||||
|
|
||||||
|
# Turn a 'yes' into a suitable default.
|
||||||
|
if test x$enable_symvers = xyes ; then
|
||||||
|
# FIXME The following test is too strict, in theory.
|
||||||
|
if test $enable_shared = no || test "x$LD" = x; then
|
||||||
|
enable_symvers=no
|
||||||
|
else
|
||||||
|
if test $with_gnu_ld = yes ; then
|
||||||
|
enable_symvers=gnu
|
||||||
|
else
|
||||||
|
case ${target_os} in
|
||||||
|
# Sun symbol versioning exists since Solaris 2.5.
|
||||||
|
solaris2.[5-9]* | solaris2.1[0-9]*)
|
||||||
|
enable_symvers=sun ;;
|
||||||
|
*)
|
||||||
|
enable_symvers=no ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check if 'sun' was requested on non-Solaris 2 platforms.
|
||||||
|
if test x$enable_symvers = xsun ; then
|
||||||
|
case ${target_os} in
|
||||||
|
solaris2*)
|
||||||
|
# All fine.
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# Unlikely to work.
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
|
||||||
|
$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
|
||||||
|
$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
|
||||||
|
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
|
||||||
|
enable_symvers=no
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
|
||||||
|
if test $enable_symvers != no; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
|
||||||
|
$as_echo_n "checking for shared libgcc... " >&6; }
|
||||||
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
|
CFLAGS=' -lgcc_s'
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
libat_shared_libgcc=yes
|
||||||
|
else
|
||||||
|
libat_shared_libgcc=no
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
|
if test $libat_shared_libgcc = no; then
|
||||||
|
cat > conftest.c <<EOF
|
||||||
|
int main (void) { return 0; }
|
||||||
|
EOF
|
||||||
|
libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
|
||||||
|
-shared -shared-libgcc -o conftest.so \
|
||||||
|
conftest.c -v 2>&1 >/dev/null \
|
||||||
|
| sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
|
||||||
|
rm -f conftest.c conftest.so
|
||||||
|
if test x${libat_libgcc_s_suffix+set} = xset; then
|
||||||
|
CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
libat_shared_libgcc=yes
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
|
||||||
|
$as_echo "$libat_shared_libgcc" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For GNU ld, we need at least this version. The format is described in
|
||||||
|
# LIBAT_CHECK_LINKER_FEATURES above.
|
||||||
|
libat_min_gnu_ld_version=21400
|
||||||
|
# XXXXXXXXXXX libat_gnu_ld_version=21390
|
||||||
|
|
||||||
|
# Check to see if unspecified "yes" value can win, given results above.
|
||||||
|
# Change "yes" into either "no" or a style name.
|
||||||
|
if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
|
||||||
|
if test $with_gnu_ld = yes; then
|
||||||
|
if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
|
||||||
|
enable_symvers=gnu
|
||||||
|
elif test $libat_ld_is_gold = yes ; then
|
||||||
|
enable_symvers=gnu
|
||||||
|
else
|
||||||
|
# The right tools, the right setup, but too old. Fallbacks?
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
|
||||||
|
$as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
|
||||||
|
$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
|
||||||
|
$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
|
||||||
|
$as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
|
||||||
|
if test $libat_gnu_ld_version -ge 21200 ; then
|
||||||
|
# Globbing fix is present, proper block support is not.
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
|
||||||
|
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
|
||||||
|
enable_symvers=no
|
||||||
|
else
|
||||||
|
# 2.11 or older.
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
|
||||||
|
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
|
||||||
|
enable_symvers=no
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
elif test $enable_symvers = sun; then
|
||||||
|
: All interesting versions of Sun ld support sun style symbol versioning.
|
||||||
|
else
|
||||||
|
# just fail for now
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
|
||||||
|
$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
|
||||||
|
$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
|
||||||
|
$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
|
||||||
|
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
|
||||||
|
enable_symvers=no
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if test $enable_symvers = gnu; then
|
||||||
|
|
||||||
|
$as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $enable_symvers != no; then
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
|
||||||
|
else
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $enable_symvers = gnu; then
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
|
||||||
|
else
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test $enable_symvers = sun; then
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
|
||||||
|
else
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
|
||||||
|
LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
|
||||||
|
fi
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
|
||||||
|
$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
|
||||||
|
|
||||||
|
|
||||||
ac_config_commands="$ac_config_commands include"
|
ac_config_commands="$ac_config_commands include"
|
||||||
|
|
||||||
ac_config_commands="$ac_config_commands src"
|
ac_config_commands="$ac_config_commands src"
|
||||||
|
@ -16170,6 +16594,18 @@ if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
|
||||||
as_fn_error "conditional \"FFI_DEBUG\" was never defined.
|
as_fn_error "conditional \"FFI_DEBUG\" was never defined.
|
||||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
|
if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
|
||||||
|
as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
|
||||||
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
|
||||||
|
as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
|
||||||
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
|
||||||
|
as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
|
||||||
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
|
fi
|
||||||
|
|
||||||
: ${CONFIG_STATUS=./config.status}
|
: ${CONFIG_STATUS=./config.status}
|
||||||
ac_write_fail=0
|
ac_write_fail=0
|
||||||
|
|
|
@ -355,6 +355,9 @@ else
|
||||||
multilib_arg=
|
multilib_arg=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check linker support.
|
||||||
|
LIBAT_ENABLE_SYMVERS
|
||||||
|
|
||||||
AC_CONFIG_COMMANDS(include, [test -d include || mkdir include])
|
AC_CONFIG_COMMANDS(include, [test -d include || mkdir include])
|
||||||
AC_CONFIG_COMMANDS(src, [
|
AC_CONFIG_COMMANDS(src, [
|
||||||
test -d src || mkdir src
|
test -d src || mkdir src
|
||||||
|
|
|
@ -166,6 +166,7 @@ NM = @NM@
|
||||||
NMEDIT = @NMEDIT@
|
NMEDIT = @NMEDIT@
|
||||||
OBJDUMP = @OBJDUMP@
|
OBJDUMP = @OBJDUMP@
|
||||||
OBJEXT = @OBJEXT@
|
OBJEXT = @OBJEXT@
|
||||||
|
OPT_LDFLAGS = @OPT_LDFLAGS@
|
||||||
OTOOL = @OTOOL@
|
OTOOL = @OTOOL@
|
||||||
OTOOL64 = @OTOOL64@
|
OTOOL64 = @OTOOL64@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
|
@ -177,6 +178,7 @@ PACKAGE_URL = @PACKAGE_URL@
|
||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
|
SECTION_LDFLAGS = @SECTION_LDFLAGS@
|
||||||
SED = @SED@
|
SED = @SED@
|
||||||
SET_MAKE = @SET_MAKE@
|
SET_MAKE = @SET_MAKE@
|
||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
|
|
|
@ -0,0 +1,70 @@
|
||||||
|
LIBFFI_BASE_5 {
|
||||||
|
global:
|
||||||
|
/* Exported data variables. */
|
||||||
|
ffi_type_void;
|
||||||
|
ffi_type_uint8;
|
||||||
|
ffi_type_sint8;
|
||||||
|
ffi_type_uint16;
|
||||||
|
ffi_type_sint16;
|
||||||
|
ffi_type_uint32;
|
||||||
|
ffi_type_sint32;
|
||||||
|
ffi_type_uint64;
|
||||||
|
ffi_type_sint64;
|
||||||
|
ffi_type_float;
|
||||||
|
ffi_type_double;
|
||||||
|
ffi_type_longdouble;
|
||||||
|
ffi_type_pointer;
|
||||||
|
|
||||||
|
/* Exported functions. */
|
||||||
|
ffi_call;
|
||||||
|
ffi_prep_cif;
|
||||||
|
ffi_prep_cif_var;
|
||||||
|
|
||||||
|
ffi_raw_call;
|
||||||
|
ffi_ptrarray_to_raw;
|
||||||
|
ffi_raw_to_ptrarray;
|
||||||
|
ffi_raw_size;
|
||||||
|
|
||||||
|
ffi_java_raw_call;
|
||||||
|
ffi_java_ptrarray_to_raw;
|
||||||
|
ffi_java_raw_to_ptrarray;
|
||||||
|
ffi_java_raw_size;
|
||||||
|
|
||||||
|
/* Functions in the ffi.h header, but not exported.
|
||||||
|
These are listed here for documentation purposes only.
|
||||||
|
ffi_prep_types
|
||||||
|
ffi_prep_cif_core
|
||||||
|
*/
|
||||||
|
|
||||||
|
local:
|
||||||
|
*;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* This section is optional based on FFI_TARGET_HAS_COMPLEX_TYPE. */
|
||||||
|
LIBFFI_COMPLEX_5 {
|
||||||
|
global:
|
||||||
|
/* Exported data variables. */
|
||||||
|
ffi_type_complex_float;
|
||||||
|
ffi_type_complex_double;
|
||||||
|
ffi_type_complex_longdouble;
|
||||||
|
} LIBFFI_BASE_5;
|
||||||
|
|
||||||
|
/* This section is optional based on FFI_CLOSURES. */
|
||||||
|
LIBFFI_CLOSURE_5 {
|
||||||
|
global:
|
||||||
|
ffi_closure_alloc;
|
||||||
|
ffi_closure_free;
|
||||||
|
ffi_prep_closure;
|
||||||
|
ffi_prep_closure_loc;
|
||||||
|
ffi_prep_raw_closure;
|
||||||
|
ffi_prep_raw_closure_loc;
|
||||||
|
ffi_prep_java_raw_closure;
|
||||||
|
ffi_prep_java_raw_closure_loc;
|
||||||
|
} LIBFFI_BASE_5;
|
||||||
|
|
||||||
|
/* This section is optional based on FFI_GO_CLOSURES. */
|
||||||
|
LIBFFI_GO_CLOSURE_5 {
|
||||||
|
global:
|
||||||
|
ffi_call_go;
|
||||||
|
ffi_prep_go_closure;
|
||||||
|
} LIBFFI_CLOSURE_5;
|
|
@ -3,4 +3,4 @@
|
||||||
# a separate file so that version updates don't involve re-running
|
# a separate file so that version updates don't involve re-running
|
||||||
# automake.
|
# automake.
|
||||||
# CURRENT:REVISION:AGE
|
# CURRENT:REVISION:AGE
|
||||||
4:1:0
|
5:0:0
|
||||||
|
|
|
@ -164,6 +164,7 @@ NM = @NM@
|
||||||
NMEDIT = @NMEDIT@
|
NMEDIT = @NMEDIT@
|
||||||
OBJDUMP = @OBJDUMP@
|
OBJDUMP = @OBJDUMP@
|
||||||
OBJEXT = @OBJEXT@
|
OBJEXT = @OBJEXT@
|
||||||
|
OPT_LDFLAGS = @OPT_LDFLAGS@
|
||||||
OTOOL = @OTOOL@
|
OTOOL = @OTOOL@
|
||||||
OTOOL64 = @OTOOL64@
|
OTOOL64 = @OTOOL64@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
|
@ -175,6 +176,7 @@ PACKAGE_URL = @PACKAGE_URL@
|
||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
|
SECTION_LDFLAGS = @SECTION_LDFLAGS@
|
||||||
SED = @SED@
|
SED = @SED@
|
||||||
SET_MAKE = @SET_MAKE@
|
SET_MAKE = @SET_MAKE@
|
||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
|
|
|
@ -135,6 +135,7 @@ NM = @NM@
|
||||||
NMEDIT = @NMEDIT@
|
NMEDIT = @NMEDIT@
|
||||||
OBJDUMP = @OBJDUMP@
|
OBJDUMP = @OBJDUMP@
|
||||||
OBJEXT = @OBJEXT@
|
OBJEXT = @OBJEXT@
|
||||||
|
OPT_LDFLAGS = @OPT_LDFLAGS@
|
||||||
OTOOL = @OTOOL@
|
OTOOL = @OTOOL@
|
||||||
OTOOL64 = @OTOOL64@
|
OTOOL64 = @OTOOL64@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
|
@ -146,6 +147,7 @@ PACKAGE_URL = @PACKAGE_URL@
|
||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
|
SECTION_LDFLAGS = @SECTION_LDFLAGS@
|
||||||
SED = @SED@
|
SED = @SED@
|
||||||
SET_MAKE = @SET_MAKE@
|
SET_MAKE = @SET_MAKE@
|
||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
|
|
Loading…
Reference in New Issue