Change 10973 by jhi@alpha on 2001/06/26 21:27:05

        Subject: [PATCH 5.6.1] OPTIMIZE=-g
        From: Ilya Zakharevich <[EMAIL PROTECTED]>
        Date: Tue, 26 Jun 2001 17:23:24 -0400
        Message-ID: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/hints/os2.sh#32 edit
... //depot/perl/lib/ExtUtils/MM_Unix.pm#98 edit
... //depot/perl/os2/Makefile.SHs#26 edit

Differences ...

==== //depot/perl/hints/os2.sh#32 (text) ====
Index: perl/hints/os2.sh
--- perl/hints/os2.sh.~1~       Wed Jun 27 16:00:07 2001
+++ perl/hints/os2.sh   Wed Jun 27 16:00:07 2001
@@ -169,7 +169,7 @@
     else
        d_fork='undef'
     fi
-    lddlflags="-Zdll -Zomf -Zmt -Zcrtdll -Zlinker /e:2 $ld_dll_optimize"
+    lddlflags="-Zdll -Zomf -Zmt -Zcrtdll -Zlinker /e:2"
     # Recursive regmatch may eat 2.5M of stack alone.
     ldflags='-Zexe -Zomf -Zmt -Zcrtdll -Zstack 32000 -Zlinker /e:2'
     if [ $emxcrtrev -ge 50 ]; then 

==== //depot/perl/lib/ExtUtils/MM_Unix.pm#98 (text) ====
Index: perl/lib/ExtUtils/MM_Unix.pm
--- perl/lib/ExtUtils/MM_Unix.pm.~1~    Wed Jun 27 16:00:07 2001
+++ perl/lib/ExtUtils/MM_Unix.pm        Wed Jun 27 16:00:07 2001
@@ -1074,11 +1074,12 @@
     my($ldfrom) = '$(LDFROM)';
     $armaybe = 'ar' if ($^O eq 'dec_osf' and $armaybe eq ':');
     my(@m);
+    my $ld_opt = $Is_OS2 ? '$(OPTIMIZE) ' : '';        # Useful on other systems too?
     push(@m,'
 # This section creates the dynamically loadable $(INST_DYNAMIC)
 # from $(OBJECT) and possibly $(MYEXTLIB).
 ARMAYBE = '.$armaybe.'
-OTHERLDFLAGS = '.$otherldflags.'
+OTHERLDFLAGS = '.$ld_opt.$otherldflags.'
 INST_DYNAMIC_DEP = '.$inst_dynamic_dep.'
 
 $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)/.exists 
$(EXPORT_LIST) $(PERL_ARCHIVE) $(PERL_ARCHIVE_AFTER) $(INST_DYNAMIC_DEP)

==== //depot/perl/os2/Makefile.SHs#26 (text) ====
Index: perl/os2/Makefile.SHs
--- perl/os2/Makefile.SHs.~1~   Wed Jun 27 16:00:07 2001
+++ perl/os2/Makefile.SHs       Wed Jun 27 16:00:07 2001
@@ -40,7 +40,7 @@
 AOUT_CCCMD_DLL = \$(CC) -DDOSISH -DOS2=2 -DEMBED -I. -DPACK_MALLOC -DDEBUGGING_MSTATS 
-DTWO_POT_OPTIMIZE -DPERL_EMERGENCY_SBRK
 AOUT_CLDFLAGS_DLL      = -Zexe -Zmt -Zcrtdll -Zstack 32000
 
-LD_OPT         = $optimize
+LD_OPT         = \$(OPTIMIZE)
 
 PERL_DLL_BASE  = perl$dll_post
 PERL_DLL       = \$(PERL_DLL_BASE)\$(DLSUFFIX)
End of Patch.

Reply via email to