Perl's ldflags usually include at least -lm and maybe some others too.

But in some OSes adding shared library dependencies to other shared
libs don't work (or maybe I'd need to do something differently :), so
check in configure that if it doesn't work, perl is never even tried to
be built as module.

On the other hand, if it does work irssi now links with libperl.so if
it's found instead of libperl.a which was always used before.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1035 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-01 10:42:15 +00:00 committed by cras
commit d304bc65ca
2 changed files with 91 additions and 18 deletions

View file

@ -26,7 +26,7 @@ libperl_la_DEPENDENCIES = .libs/libperl_orig.a .libs/DynaLoader.a
.libs/libperl_orig.a:
if [ ! -d .libs ]; then mkdir .libs; fi
rm -f .libs/libperl_orig.a
$(LN_S) $(LIBPERL_A) .libs/libperl_orig.a
if [ x$(LIBPERL_A) = x ]; then touch .libs/libperl_orig.a; else $(LN_S) $(LIBPERL_A) .libs/libperl_orig.a; fi
.libs/DynaLoader.a:
if [ ! -d .libs ]; then mkdir .libs; fi
rm -f .libs/DynaLoader.a