libtool.m4 (libtool_flags): Add patch from libtool CVS...
* libtool.m4 (libtool_flags): Add patch from libtool CVS: Support linking of 32-bit libraries with ld on the x86-64, ppc64, s390x and sparc64 GNU/Linux systems. From-SVN: r59304
This commit is contained in:
parent
6d1d1db044
commit
3b75d2378c
|
@ -1,3 +1,9 @@
|
||||||
|
2002-11-19 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* libtool.m4 (libtool_flags): Add patch from libtool CVS: Support
|
||||||
|
linking of 32-bit libraries with ld on the x86-64, ppc64, s390x
|
||||||
|
and sparc64 GNU/Linux systems.
|
||||||
|
|
||||||
2002-11-19 Nathan Sidwell <nathan@codesourcery.com>
|
2002-11-19 Nathan Sidwell <nathan@codesourcery.com>
|
||||||
|
|
||||||
* MAINTAINERS: Update email.
|
* MAINTAINERS: Update email.
|
||||||
|
|
|
@ -175,6 +175,48 @@ ia64-*-hpux*)
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
|
||||||
|
# Find out which ABI we are using.
|
||||||
|
echo 'int i;' > conftest.$ac_ext
|
||||||
|
if AC_TRY_EVAL(ac_compile); then
|
||||||
|
case "`/usr/bin/file conftest.o`" in
|
||||||
|
*32-bit*)
|
||||||
|
case $host in
|
||||||
|
x86_64-*linux*)
|
||||||
|
LD="${LD-ld} -m elf_i386"
|
||||||
|
;;
|
||||||
|
ppc64-*linux*)
|
||||||
|
LD="${LD-ld} -m elf32ppclinux"
|
||||||
|
;;
|
||||||
|
s390x-*linux*)
|
||||||
|
LD="${LD-ld} -m elf_s390"
|
||||||
|
;;
|
||||||
|
sparc64-*linux*)
|
||||||
|
LD="${LD-ld} -m elf32_sparc"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*64-bit*)
|
||||||
|
case $host in
|
||||||
|
x86_64-*linux*)
|
||||||
|
LD="${LD-ld} -m elf_x86_64"
|
||||||
|
;;
|
||||||
|
ppc*-*linux*|powerpc*-*linux*)
|
||||||
|
LD="${LD-ld} -m elf64ppc"
|
||||||
|
;;
|
||||||
|
s390*-*linux*)
|
||||||
|
LD="${LD-ld} -m elf64_s390"
|
||||||
|
;;
|
||||||
|
sparc*-*linux*)
|
||||||
|
LD="${LD-ld} -m elf64_sparc"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
rm -rf conftest*
|
||||||
|
;;
|
||||||
|
|
||||||
*-*-sco3.2v5*)
|
*-*-sco3.2v5*)
|
||||||
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
||||||
SAVE_CFLAGS="$CFLAGS"
|
SAVE_CFLAGS="$CFLAGS"
|
||||||
|
|
Loading…
Reference in New Issue