1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

linker usage fixes

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2925 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-09-16 15:34:04 +00:00 committed by cras
parent 74e9e265a5
commit e3e5deba2f

View File

@ -463,7 +463,7 @@ if test ! -s conftest.lo; then
fi
dnl ** link to library
./libtool --mode=link $CC $CFLAGS $LDFLAGS -rpath /usr/lib conftest.lo -lm -o libconftest.la > /dev/null
./libtool --mode=link $LD $LDFLAGS -rpath /usr/lib conftest.lo -lm -o libconftest.la > /dev/null
if test ! -s .libs/libconftest.a; then
AC_ERROR([error, can't even find .a library])
fi
@ -615,7 +615,11 @@ if test "$want_perl" != "no"; then
dnl * check that perl's ldflags actually work
echo "main(){perl_alloc(); return 0;}" > conftest.c
$CC $CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> perl.error.tmp > /dev/null
$CC $CFLAGS conftest.c -c -o conftest.o 2> perl.error.tmp > /dev/null
if test -s conftest.o; then
$LD conftest.o -o conftest $LDFLAGS $PERL_LDFLAGS 2
> perl.error.tmp > /dev/null
fi
if test ! -s conftest; then
perl_check_error="Error linking with perl libraries: $PERL_LDFLAGS: `cat perl.error.tmp`"
AC_MSG_RESULT([error linking with perl libraries, building without Perl])