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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f118837 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
  • libtool-1.4.2/libtool.m4

    old new  
    21672167  # people can always --disable-shared, the test was removed, and we
    21682168  # assume the GNU/Linux dynamic linker is in use.
    21692169  dynamic_linker='GNU/Linux ld.so'
     2170
     2171  # Find out which ABI we are using (multilib Linux x86_64 hack).
     2172  libsuff=
     2173  case "$host_cpu" in
     2174  x86_64*)
     2175    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
     2176    if AC_TRY_EVAL(ac_compile); then
     2177      case `/usr/bin/file conftest.$ac_objext` in
     2178      *64-bit*)
     2179        libsuff=64
     2180        ;;
     2181      esac
     2182    fi
     2183    rm -rf conftest*
     2184    ;;
     2185  *)
     2186    ;;
     2187  esac
     2188  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
     2189  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
    21702190  ;;
    21712191
    21722192netbsd*)
  • libtool-1.4.2/libltdl/acinclude.m4

    old new  
    21672167  # people can always --disable-shared, the test was removed, and we
    21682168  # assume the GNU/Linux dynamic linker is in use.
    21692169  dynamic_linker='GNU/Linux ld.so'
     2170
     2171  # Find out which ABI we are using (multilib Linux x86_64 hack).
     2172  libsuff=
     2173  case "$host_cpu" in
     2174  x86_64*)
     2175    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
     2176    if AC_TRY_EVAL(ac_compile); then
     2177      case `/usr/bin/file conftest.$ac_objext` in
     2178      *64-bit*)
     2179        libsuff=64
     2180        ;;
     2181      esac
     2182    fi
     2183    rm -rf conftest*
     2184    ;;
     2185  *)
     2186    ;;
     2187  esac
     2188  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
     2189  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
    21702190  ;;
    21712191
    21722192netbsd*)
Note: See TracBrowser for help on using the repository browser.