summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-11 00:59:31 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-11 00:59:31 +0000
commit8fdf96e193e9dbf77ecf07946351093649d1650f (patch)
tree1694b23eed8015af9dc2e1fd40ea220eb5eaf813 /Makefile.SH
parentb31f83c2b51588ff44a060fb3cc25559043537f5 (diff)
downloadperl-8fdf96e193e9dbf77ecf07946351093649d1650f.tar.gz
The BeOS linker seems to link the last seen symbol,
not the first (so the symbols of op.o from libperl.so would get linked to miniperl instead of the symbols of opmini.o)-- use the same trick as for NeXT4 for linking miniperl. p4raw-id: //depot/perl@13609
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 8092bf582a..7ff5079cd0 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -494,19 +494,19 @@ $(LIBPERL): $& perl$(OBJ_EXT) $(obj) $(LIBPERLEXPORT)
!NO!SUBS!
case "${osname}${osvers}" in
- next4*)
+ aix*)
$spitshell >>Makefile <<'!NO!SUBS!'
miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT)
- $(CC) -o miniperl `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
+ $(CC) -o miniperl $(CLDFLAGS) \
+ `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
$(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
!NO!SUBS!
;;
- aix*)
+ beos*|next4*)
$spitshell >>Makefile <<'!NO!SUBS!'
miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT)
- $(CC) -o miniperl $(CLDFLAGS) \
- `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
+ $(CC) -o miniperl `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
$(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
!NO!SUBS!