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

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: Added the second file Created 9 years, 8 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 if [ $host_os == 'nacl' ] ; then
2453 library_names_spec='${libname}${release}-${versuffix:1}${shared_ext} ${libna me}${release}${shared_ext}$major $libname${shared_ext}'
khim 2011/03/28 14:42:11 Let's not try to fix upstream inconsistencies. We
halyavin 2011/03/28 14:50:13 Done.
2454 else
2455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
2456 fi
2453 soname_spec='${libname}${release}${shared_ext}$major' 2457 soname_spec='${libname}${release}${shared_ext}$major'
2454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2455 shlibpath_var=LD_LIBRARY_PATH 2459 shlibpath_var=LD_LIBRARY_PATH
2456 shlibpath_overrides_runpath=no 2460 shlibpath_overrides_runpath=no
2457 2461
2458 # Some binutils ld are patched to set DT_RUNPATH 2462 # Some binutils ld are patched to set DT_RUNPATH
2459 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 2463 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2460 [lt_cv_shlibpath_overrides_runpath=no 2464 [lt_cv_shlibpath_overrides_runpath=no
2461 save_LDFLAGS=$LDFLAGS 2465 save_LDFLAGS=$LDFLAGS
2462 save_libdir=$libdir 2466 save_libdir=$libdir
(...skipping 17 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' ' '` 2484 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" 2485 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2482 fi 2486 fi
2483 2487
2484 # We used to test for /lib/ld.so.1 and disable shared libraries on 2488 # We used to test for /lib/ld.so.1 and disable shared libraries on
2485 # powerpc, because MkLinux only supported shared libraries with the 2489 # powerpc, because MkLinux only supported shared libraries with the
2486 # GNU dynamic linker. Since this was broken with cross compilers, 2490 # GNU dynamic linker. Since this was broken with cross compilers,
2487 # most powerpc-linux boxes support dynamic linking these days and 2491 # most powerpc-linux boxes support dynamic linking these days and
2488 # people can always --disable-shared, the test was removed, and we 2492 # people can always --disable-shared, the test was removed, and we
2489 # assume the GNU/Linux dynamic linker is in use. 2493 # assume the GNU/Linux dynamic linker is in use.
2490 dynamic_linker='GNU/Linux ld.so' 2494 if [ $host_os != 'nacl' ] ; then
2495 dynamic_linker='GNU/Linux ld.so'
2496 fi
2491 ;; 2497 ;;
2492 2498
2493 netbsd*) 2499 netbsd*)
2494 version_type=sunos 2500 version_type=sunos
2495 need_lib_prefix=no 2501 need_lib_prefix=no
2496 need_version=no 2502 need_version=no
2497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 2503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix' 2504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix'
2499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2500 dynamic_linker='NetBSD (a.out) ld.so' 2506 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. 7361 # Append VALUE to the end of shell variable VAR.
7356 func_append () 7362 func_append ()
7357 { 7363 {
7358 eval "$[1]=\$$[1]\$[2]" 7364 eval "$[1]=\$$[1]\$[2]"
7359 } 7365 }
7360 7366
7361 _LT_EOF 7367 _LT_EOF
7362 ;; 7368 ;;
7363 esac 7369 esac
7364 ]) 7370 ])
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