From d304bc65ca51592f388f57c621c3cf2ac3efa07d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 1 Jan 2001 10:42:15 +0000 Subject: 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 --- src/perl/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3