diff options
author | Björn Jacke <bj@sernet.de> | 2010-05-05 20:17:39 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2010-05-05 21:38:08 +0200 |
commit | 1969b4acc3fd7c124e288d0495b9b4665d4b42db (patch) | |
tree | 7645d99e56570ccf2ea06afd5a2fb7872d792e8f /source3/m4 | |
parent | d8ba02b73d53863d604ccbe0a4391d7b38590c1c (diff) | |
download | samba-1969b4acc3fd7c124e288d0495b9b4665d4b42db.tar.gz samba-1969b4acc3fd7c124e288d0495b9b4665d4b42db.tar.bz2 samba-1969b4acc3fd7c124e288d0495b9b4665d4b42db.zip |
s3:configure: not simply check for "ld" but for the linker used by $CC
this hopefully fixes Solaris' gcc build which uses the system ld by default.
All in all we should clean up most of the compiler and linker flags depending
on the actual compilers and linkers we use. Only some tweaks are OS-specific.
A cleanup in this area should be done along with the move to a new build
system (whensoever that will be ...).
Diffstat (limited to 'source3/m4')
-rw-r--r-- | source3/m4/aclocal.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/m4/aclocal.m4 b/source3/m4/aclocal.m4 index bdad6fa6e5..77224874f3 100644 --- a/source3/m4/aclocal.m4 +++ b/source3/m4/aclocal.m4 @@ -363,9 +363,9 @@ EOF dnl Copied from libtool.m4 AC_DEFUN(AC_PROG_LD_GNU, -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, +[AC_CACHE_CHECK([if the linker used by compiler is GNU ld], ac_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then +if $CC -Wl,-v /dev/null 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then ac_cv_prog_gnu_ld=yes else ac_cv_prog_gnu_ld=no |