source: scripts/untested/autotools/patches/libtool-1.4.3-lib64.patch@ def3913

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since def3913 was d1afb9e, checked in by Jim Gifford <clfs@…>, 19 years ago

r587@server (orig r585): ryan | 2005-08-05 21:51:35 -0700
Add a sane autotools build to the mix.
Blatantly stolen from gentoo...



  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[d1afb9e]1--- libtool-1.4.3/libtool.m4.lib64 2003-02-13 14:47:06.000000000 +0100
2+++ libtool-1.4.3/libtool.m4 2003-02-13 14:47:06.000000000 +0100
3@@ -100,6 +100,20 @@ case $host in
4 rm -rf conftest*
5 ;;
6
7+*-*-linux*)
8+ # Test if the compiler is 64bit
9+ echo 'int i;' > conftest.$ac_ext
10+ lt_cv_cc_64bit_output=no
11+ if AC_TRY_EVAL(ac_compile); then
12+ case `/usr/bin/file conftest.$ac_objext` in
13+ *"ELF 64"*)
14+ lt_cv_cc_64bit_output=yes
15+ ;;
16+ esac
17+ fi
18+ rm -rf conftest*
19+ ;;
20+
21 *-*-sco3.2v5*)
22 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
23 SAVE_CFLAGS="$CFLAGS"
24@@ -2183,6 +2197,13 @@ linux-gnu*)
25 # before this can be enabled.
26 hardcode_into_libs=yes
27
28+ case $host_cpu:$lt_cv_cc_64bit_output in
29+ powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
30+ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
31+ sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
32+ ;;
33+ esac
34+
35 # We used to test for /lib/ld.so.1 and disable shared libraries on
36 # powerpc, because MkLinux only supported shared libraries with the
37 # GNU dynamic linker. Since this was broken with cross compilers,
Note: See TracBrowser for help on using the repository browser.