summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Broad <andy@broad.ology.org.uk>2015-08-13 19:19:31 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2015-09-05 11:12:43 -0400
commitc8aec1f6fbd64991e684df901a3b6326ca921302 (patch)
treebfa89b3ff8b39fd4b0e800b72b01a28e19589e3e
parentf2bbbc991c18f0c1fb4e31431e69c5c0f6bad12c (diff)
downloadperl-c8aec1f6fbd64991e684df901a3b6326ca921302.tar.gz
amigaos4: the Perl executable needs to be linked with -ldl
(but none of the other executables should be)
-rwxr-xr-xMakefile.SH6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.SH b/Makefile.SH
index e7c828785d..de6d6c9f07 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -953,6 +953,12 @@ $(PERL_EXE): $& perlmain$(OBJ_EXT) $(LIBPERL) $(static_ext) ext.libs $(PERLEXPOR
!NO!SUBS!
case $osname in
+ # In AmigaOS the Perl executable needs to be linked with -ldl,
+ # but none of the other executables should be.
+ amigaos) $spitshell >>$Makefile <<'!NO!SUBS!'
+ $(SHRPENV) $(CC) -o perl $(CLDFLAGS) $(CCDLFLAGS) perlmain$(OBJ_EXT) $(LLIBPERL) $(static_ext) `cat ext.libs` $(libs) -ldl
+!NO!SUBS!
+ ;;
os390) $spitshell >>$Makefile <<'!NO!SUBS!'
$(SHRPENV) $(CC) -o perl $(CLDFLAGS) $(CCDLFLAGS) perlmain$(OBJ_EXT) $(LLIBPERL) $(static_ext) `cat ext.libs` $(libs)
!NO!SUBS!