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

Side by Side Diff: gcc/configure.ac

Issue 14859004: Backport GCC 4.5+ --enable-linker-build-id option. (Closed) Base URL: http://git.chromium.org/native_client/nacl-gcc.git@master
Patch Set: Created 7 years, 7 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 | « gcc/configure ('k') | gcc/doc/install.texi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # configure.ac for GCC 1 # configure.ac for GCC
2 # Process this file with autoconf to generate a configuration script. 2 # Process this file with autoconf to generate a configuration script.
3 3
4 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 4 # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
5 # 2007, 2008 Free Software Foundation, Inc. 5 # 2007, 2008 Free Software Foundation, Inc.
6 6
7 #This file is part of GCC. 7 #This file is part of GCC.
8 8
9 #GCC is free software; you can redistribute it and/or modify it under 9 #GCC is free software; you can redistribute it and/or modify it under
10 #the terms of the GNU General Public License as published by the Free 10 #the terms of the GNU General Public License as published by the Free
(...skipping 3498 matching lines...) Expand 10 before | Expand all | Expand 10 after
3509 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s 3509 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
3510 fi 3510 fi
3511 ]) 3511 ])
3512 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then 3512 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
3513 AC_DEFINE(HAVE_LD_NO_DOT_SYMS, 1, 3513 AC_DEFINE(HAVE_LD_NO_DOT_SYMS, 1,
3514 [Define if your PowerPC64 linker only needs function descriptor syms.]) 3514 [Define if your PowerPC64 linker only needs function descriptor syms.])
3515 fi 3515 fi
3516 ;; 3516 ;;
3517 esac 3517 esac
3518 3518
3519 AC_CACHE_CHECK(linker --build-id support,
3520 gcc_cv_ld_buildid,
3521 [gcc_cv_ld_buildid=no
3522 if test $in_tree_ld = yes ; then
3523 if test "$gcc_cv_gld_major_version" -eq 2 -a \
3524 "$gcc_cv_gld_minor_version" -ge 18 -o \
3525 "$gcc_cv_gld_major_version" -gt 2 \
3526 && test $in_tree_ld_is_elf = yes; then
3527 gcc_cv_ld_buildid=yes
3528 fi
3529 elif test x$gcc_cv_ld != x; then
3530 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
3531 gcc_cv_ld_buildid=yes
3532 fi
3533 fi])
3534 if test x"$gcc_cv_ld_buildid" = xyes; then
3535 AC_DEFINE(HAVE_LD_BUILDID, 1,
3536 [Define if your linker supports --build-id.])
3537 fi
3538
3539 AC_ARG_ENABLE(linker-build-id,
3540 [ --enable-linker-build-id
3541 compiler will always pass --build-id to linker],
3542 [],
3543 enable_linker_build_id=no)
3544
3545 if test x"$enable_linker_build_id" = xyes; then
3546 if test x"$gcc_cv_ld_buildid" = xyes; then
3547 AC_DEFINE(ENABLE_LD_BUILDID, 1,
3548 [Define if gcc should always pass --build-id to linker.])
3549 else
3550 AC_MSG_WARN(--build-id is not supported by your linker; --enable-linker-buil d-id ignored)
3551 fi
3552 fi
3553
3519 AC_CACHE_CHECK(linker --sysroot support, 3554 AC_CACHE_CHECK(linker --sysroot support,
3520 gcc_cv_ld_sysroot, 3555 gcc_cv_ld_sysroot,
3521 [gcc_cv_ld_sysroot=no 3556 [gcc_cv_ld_sysroot=no
3522 if test $in_tree_ld = yes ; then 3557 if test $in_tree_ld = yes ; then
3523 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" - ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then 3558 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" - ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
3524 gcc_cv_ld_sysroot=yes 3559 gcc_cv_ld_sysroot=yes
3525 fi 3560 fi
3526 elif test x$gcc_cv_ld != x; then 3561 elif test x$gcc_cv_ld != x; then
3527 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then 3562 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
3528 gcc_cv_ld_sysroot=yes 3563 gcc_cv_ld_sysroot=yes
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
4005 echo > cstamp-h ;; 4040 echo > cstamp-h ;;
4006 esac 4041 esac
4007 # Make sure all the subdirs exist. 4042 # Make sure all the subdirs exist.
4008 for d in $subdirs doc build 4043 for d in $subdirs doc build
4009 do 4044 do
4010 test -d $d || mkdir $d 4045 test -d $d || mkdir $d
4011 done 4046 done
4012 ], 4047 ],
4013 [subdirs='$subdirs']) 4048 [subdirs='$subdirs'])
4014 AC_OUTPUT 4049 AC_OUTPUT
OLDNEW
« no previous file with comments | « gcc/configure ('k') | gcc/doc/install.texi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698