perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Ananiev" <anan...@thegdb.com>
Subject auto-image-base flag for cygwin
Date Fri, 02 Sep 2005 13:40:29 GMT
On cygwin some dlls might happen to be with identical
base addresses and if you try to load both of them you'll
get an error and you'll have to use the rebase utility to fix them.
The following patch should prevent this.

Index: lib/Apache2/Build.pm
===================================================================
--- lib/Apache2/Build.pm (revision 264972)
+++ lib/Apache2/Build.pm (working copy)
@@ -320,6 +320,7 @@

         $ldopts = join ' ',
             '--export-all-symbols',
+            '--enable-auto-image-base',
             "$self->{cwd}/src/modules/perl/$mplib",
             $ldopts;

@@ -1590,7 +1591,8 @@
  $(MODPERL_RM_F) $@
  $(MODPERL_CC) -shared -o $@ \
  -Wl,--out-implib=$(MODPERL_LIBNAME).dll.a \
- -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
+ -Wl,--export-all-symbols -Wl,--enable-auto-import \
+ -Wl,--enable-auto-image-base -Wl,--stack,8388608 \
  $(MODPERL_PIC_OBJS) \
  $(MODPERL_LDDLFLAGS) $(MODPERL_LDOPTS) \
  $(MODPERL_AP_LIBS)




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message