diff options
author | Ilya Zakharevich <ilya@math.berkeley.edu> | 2001-06-26 13:23:24 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-26 21:27:05 +0000 |
commit | f07bc2fb9a3bcfebd595f61258c07dfe26c8ce02 (patch) | |
tree | e176da4d53ca09515d08f16b0836b3ba9352565c /lib/ExtUtils | |
parent | ad3e0f90203631188275b662a5e2571926434aed (diff) | |
download | perl-f07bc2fb9a3bcfebd595f61258c07dfe26c8ce02.tar.gz |
OPTIMIZE=-g
Message-ID: <20010626172324.A27003@math.ohio-state.edu>
p4raw-id: //depot/perl@10973
Diffstat (limited to 'lib/ExtUtils')
-rw-r--r-- | lib/ExtUtils/MM_Unix.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExtUtils/MM_Unix.pm b/lib/ExtUtils/MM_Unix.pm index a2373824c2..a9e7ad48f2 100644 --- a/lib/ExtUtils/MM_Unix.pm +++ b/lib/ExtUtils/MM_Unix.pm @@ -1074,11 +1074,12 @@ sub dynamic_lib { 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) |