summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-09-09 03:36:05 +0000
committerTim Potter <tpot@samba.org>2004-09-09 03:36:05 +0000
commit9daa495d6f6b2687e0cac3e3c292573bcae51ab3 (patch)
tree27b6171a4f471b9ac1796a335411842e89fdd3eb /source
parent38def494549b47147b3ee7efec416b994edfdf52 (diff)
downloadsamba-9daa495d6f6b2687e0cac3e3c292573bcae51ab3.tar.gz
samba-9daa495d6f6b2687e0cac3e3c292573bcae51ab3.tar.xz
samba-9daa495d6f6b2687e0cac3e3c292573bcae51ab3.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.
Diffstat (limited to 'source')
-rw-r--r--source/configure.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/configure.in b/source/configure.in
index 50ac3356477..31ccb1e11fa 100644
--- a/source/configure.in
+++ b/source/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