summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-01-01 10:42:15 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-01-01 10:42:15 +0000
commitd304bc65ca51592f388f57c621c3cf2ac3efa07d (patch)
treed8a159dbfe12ad4757bb1a41116449c83c1f776a /src
parent4a33801669f183f6df05276320a063ec19aa34bc (diff)
downloadirssi-d304bc65ca51592f388f57c621c3cf2ac3efa07d.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/perl/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/perl/Makefile.am b/src/perl/Makefile.am
index 33b97304..08117856 100644
--- a/src/perl/Makefile.am
+++ b/src/perl/Makefile.am
@@ -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