Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: libtool.m4

Issue 6761001: Compile stdc++ library with both static and dynamic linking. (Closed) Base URL: http://git.chromium.org/git/nacl-gcc@master
Patch Set: Removed libstdc++ rename. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « libstdc++-v3/configure ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2 # 2 #
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
4 # 2006, 2007, 2008 Free Software Foundation, Inc. 4 # 2006, 2007, 2008 Free Software Foundation, Inc.
5 # Written by Gordon Matzigkeit, 1996 5 # Written by Gordon Matzigkeit, 1996
6 # 6 #
7 # This file is free software; the Free Software Foundation gives 7 # This file is free software; the Free Software Foundation gives
8 # unlimited permission to copy and/or distribute it, with or without 8 # unlimited permission to copy and/or distribute it, with or without
9 # modifications, as long as this notice is preserved. 9 # modifications, as long as this notice is preserved.
10 10
(...skipping 2427 matching lines...) Expand 10 before | Expand all | Expand 10 after
2438 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 2438 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2439 hardcode_into_libs=yes 2439 hardcode_into_libs=yes
2440 ;; 2440 ;;
2441 2441
2442 # No shared lib support for Linux oldld, aout, or coff. 2442 # No shared lib support for Linux oldld, aout, or coff.
2443 linux*oldld* | linux*aout* | linux*coff*) 2443 linux*oldld* | linux*aout* | linux*coff*)
2444 dynamic_linker=no 2444 dynamic_linker=no
2445 ;; 2445 ;;
2446 2446
2447 # This must be Linux ELF. 2447 # This must be Linux ELF.
2448 linux* | k*bsd*-gnu | kopensolaris*-gnu) 2448 nacl* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
2449 version_type=linux 2449 version_type=linux
2450 need_lib_prefix=no 2450 need_lib_prefix=no
2451 need_version=no 2451 need_version=no
2452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}' 2452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
2453 soname_spec='${libname}${release}${shared_ext}$major' 2453 soname_spec='${libname}${release}${shared_ext}$major'
2454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2455 shlibpath_var=LD_LIBRARY_PATH 2455 shlibpath_var=LD_LIBRARY_PATH
2456 shlibpath_overrides_runpath=no 2456 shlibpath_overrides_runpath=no
2457 2457
2458 # Some binutils ld are patched to set DT_RUNPATH 2458 # Some binutils ld are patched to set DT_RUNPATH
(...skipping 21 matching lines...) Expand all
2480 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null" , \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 2480 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null" , \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2481 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 2481 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2482 fi 2482 fi
2483 2483
2484 # We used to test for /lib/ld.so.1 and disable shared libraries on 2484 # We used to test for /lib/ld.so.1 and disable shared libraries on
2485 # powerpc, because MkLinux only supported shared libraries with the 2485 # powerpc, because MkLinux only supported shared libraries with the
2486 # GNU dynamic linker. Since this was broken with cross compilers, 2486 # GNU dynamic linker. Since this was broken with cross compilers,
2487 # most powerpc-linux boxes support dynamic linking these days and 2487 # most powerpc-linux boxes support dynamic linking these days and
2488 # people can always --disable-shared, the test was removed, and we 2488 # people can always --disable-shared, the test was removed, and we
2489 # assume the GNU/Linux dynamic linker is in use. 2489 # assume the GNU/Linux dynamic linker is in use.
2490 dynamic_linker='GNU/Linux ld.so' 2490 if [ $host_os != 'nacl' ] ; then
2491 dynamic_linker='GNU/Linux ld.so'
2492 fi
2491 ;; 2493 ;;
2492 2494
2493 netbsd*) 2495 netbsd*)
2494 version_type=sunos 2496 version_type=sunos
2495 need_lib_prefix=no 2497 need_lib_prefix=no
2496 need_version=no 2498 need_version=no
2497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 2499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix' 2500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix'
2499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2500 dynamic_linker='NetBSD (a.out) ld.so' 2502 dynamic_linker='NetBSD (a.out) ld.so'
(...skipping 4854 matching lines...) Expand 10 before | Expand all | Expand 10 after
7355 # Append VALUE to the end of shell variable VAR. 7357 # Append VALUE to the end of shell variable VAR.
7356 func_append () 7358 func_append ()
7357 { 7359 {
7358 eval "$[1]=\$$[1]\$[2]" 7360 eval "$[1]=\$$[1]\$[2]"
7359 } 7361 }
7360 7362
7361 _LT_EOF 7363 _LT_EOF
7362 ;; 7364 ;;
7363 esac 7365 esac
7364 ]) 7366 ])
OLDNEW
« no previous file with comments | « libstdc++-v3/configure ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698