source: scripts/untested/autotools/patches/libtool-1.4.2-multilib.patch@ 41a2794

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 41a2794 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.7 KB
RevLine 
[d1afb9e]1--- libtool-1.4.2/libtool.m4.multilib 2002-09-13 17:32:31.000000000 -0400
2+++ libtool-1.4.2/libtool.m4 2002-09-13 17:32:34.000000000 -0400
3@@ -2167,6 +2167,26 @@
4 # people can always --disable-shared, the test was removed, and we
5 # assume the GNU/Linux dynamic linker is in use.
6 dynamic_linker='GNU/Linux ld.so'
7+
8+ # Find out which ABI we are using (multilib Linux x86_64 hack).
9+ libsuff=
10+ case "$host_cpu" in
11+ x86_64*)
12+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
13+ if AC_TRY_EVAL(ac_compile); then
14+ case `/usr/bin/file conftest.$ac_objext` in
15+ *64-bit*)
16+ libsuff=64
17+ ;;
18+ esac
19+ fi
20+ rm -rf conftest*
21+ ;;
22+ *)
23+ ;;
24+ esac
25+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
26+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
27 ;;
28
29 netbsd*)
30--- libtool-1.4.2/libltdl/acinclude.m4.multilib 2002-09-13 17:32:31.000000000 -0400
31+++ libtool-1.4.2/libltdl/acinclude.m4 2002-09-13 17:32:34.000000000 -0400
32@@ -2167,6 +2167,26 @@
33 # people can always --disable-shared, the test was removed, and we
34 # assume the GNU/Linux dynamic linker is in use.
35 dynamic_linker='GNU/Linux ld.so'
36+
37+ # Find out which ABI we are using (multilib Linux x86_64 hack).
38+ libsuff=
39+ case "$host_cpu" in
40+ x86_64*)
41+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
42+ if AC_TRY_EVAL(ac_compile); then
43+ case `/usr/bin/file conftest.$ac_objext` in
44+ *64-bit*)
45+ libsuff=64
46+ ;;
47+ esac
48+ fi
49+ rm -rf conftest*
50+ ;;
51+ *)
52+ ;;
53+ esac
54+ sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
55+ sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
56 ;;
57
58 netbsd*)
Note: See TracBrowser for help on using the repository browser.