summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-09-09 03:36:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:38 -0500
commitf9ebee99a7d67fa3d64e92b23598957812ebd611 (patch)
treebe62700638a3f9b437a787917236608e25d34e50
parent1ee9f9ad81d6619f581b87ef9e631d18ee4452b9 (diff)
downloadsamba-f9ebee99a7d67fa3d64e92b23598957812ebd611.tar.gz
samba-f9ebee99a7d67fa3d64e92b23598957812ebd611.tar.bz2
samba-f9ebee99a7d67fa3d64e92b23598957812ebd611.zip
r2263: When testing whether building shared libraries actually works, use
$SHLD and $LDSHFLAGS instead of $CC, $CPPFLAGS and $CFLAGS as this is more likely to actually work. Bugzilla #1731. I'm checking this in to 3.0 so it can hit the build farm and flush out any problems with other architectures. With a bit of luck this should go in to Samba 3.0.8. (This used to be commit a754f29ef819e1cf7ea31c117e5ef1487cb5cb5e)
-rw-r--r--source3/configure.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 50ac335647..31ccb1e11f 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -1302,13 +1302,14 @@ fi
if test $BLDSHARED = true; then
AC_CACHE_CHECK([whether building shared libraries actually works],
[ac_cv_shlib_works],[
- ac_cv_shlib_works=no
# try building a trivial shared library
+ ac_cv_shlib_works=no
+ # The $SHLD and $LDSHFLAGS variables may contain references to other
+ # variables so they need to be eval'ed.
$CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o \
shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c && \
- $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o "shlib.$SHLIBEXT" \
- shlib.$PICSUFFIX && \
- ac_cv_shlib_works=yes
+ `eval echo $SHLD` `eval echo $LDSHFLAGS` -o "shlib.$SHLIBEXT" \
+ shlib.$PICSUFFIX && ac_cv_shlib_works=yes
rm -f "shlib.$SHLIBEXT" shlib.$PICSUFFIX
])
if test $ac_cv_shlib_works = no; then