diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-06 12:59:44 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:17:46 -0500 |
commit | 0a4aafbe301c9e5d2962684d63c64c5bb5dfad12 (patch) | |
tree | e75d8b72fe4fa585c3a6da4f17c267a28d5da727 /source4/build | |
parent | 2ad95ed398ac9b105a5d304de1f8f4640d63d555 (diff) | |
download | samba-0a4aafbe301c9e5d2962684d63c64c5bb5dfad12.tar.gz samba-0a4aafbe301c9e5d2962684d63c64c5bb5dfad12.tar.bz2 samba-0a4aafbe301c9e5d2962684d63c64c5bb5dfad12.zip |
r18173: PICSUFFIX isn't used anymore
metze
(This used to be commit 647f3b140c77a2a01ff0c9fadf45e080659844d1)
Diffstat (limited to 'source4/build')
-rw-r--r-- | source4/build/m4/check_ld.m4 | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/source4/build/m4/check_ld.m4 b/source4/build/m4/check_ld.m4 index 6f9deaa0a6..137ef8b05d 100644 --- a/source4/build/m4/check_ld.m4 +++ b/source4/build/m4/check_ld.m4 @@ -27,7 +27,6 @@ LDSHFLAGS="-shared" SONAMEFLAG="" SHLD="\${CC}" PICFLAG="" -PICSUFFIX="po" SHLIBEXT="so" AC_MSG_CHECKING([ability to build shared libraries]) @@ -56,7 +55,6 @@ case "$host_os" in ## ${CFLAGS} added for building 64-bit shared ## libs using Sun's Compiler LDSHFLAGS="-G \${CFLAGS}" - PICSUFFIX="po.o" fi ;; *sunos*) @@ -177,7 +175,7 @@ AC_MSG_RESULT($BLDSHARED) AC_MSG_CHECKING([linker flags for shared libraries]) AC_MSG_RESULT([$LDSHFLAGS]) AC_MSG_CHECKING([compiler flags for position-independent code]) -AC_MSG_RESULT([$PICFLAGS]) +AC_MSG_RESULT([$PICFLAG]) ####################################################### # test whether building a shared library actually works @@ -186,17 +184,10 @@ AC_CACHE_CHECK([whether building shared libraries actually works], [ac_cv_shlib_works],[ ac_cv_shlib_works=no # try building a trivial shared library - if test "$PICSUFFIX" = "po"; then - $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/build/tests/shlib.c && - $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po && + ${CC} ${CFLAGS} ${PICFLAG} -c ${srcdir-.}/build/tests/shlib.c -o shlib.o && + ${SHLD} ${LDSHFLAGS} `eval echo ${LDFLAGS}` -o shlib.${SHLIBEXT} shlib.o && ac_cv_shlib_works=yes - else - $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/build/tests/shlib.c && - mv shlib.$PICSUFFIX shlib.po && - $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po && - ac_cv_shlib_works=yes - fi - rm -f shlib.so shlib.po + rm -f shlib.${SHLIBEXT} shlib.o ]) if test $ac_cv_shlib_works = no; then BLDSHARED=false |