[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
--enable-auto-image-base linker option for Cygwin
From: |
John W. Eaton |
Subject: |
--enable-auto-image-base linker option for Cygwin |
Date: |
Thu, 14 Jul 2005 13:27:23 -0400 |
On 8-Jul-2005, James R. Phillips wrote:
| Cygwin maintainers periodically grouse about needing the rebase utility, and
| recently have proposed use of --enable-auto-image-base as a linker option, in
| the hopes of reducing or eliminating dll address base collisions, thus
| eliminating the need for rebase.
|
| AFAICT, this would require adding "-wl,--enable-auto-image-base" to the
| SH_LDFLAGS defined for cygwin/mingw in configure.in.
|
| Is this feasible, and is it worth doing?
|
| I have not seen the "failing fork()" issue that necessitates use of rebase
with
| the cygwin build 2.1.71-1. I have seen it in the past, though, for earlier
| builds that were not official cygwin packages.
I can apply the following change if it solves a real problem. Is
there any disadvantage to making this change?
jwe
ChangeLog:
2005-07-14 John W. Eaton <address@hidden>
* configure.in (SH_LDFLAGS): Add -Wl,--enable-auto-image-base for
Cygwin and MinGW.
Index: configure.in
===================================================================
RCS file: /cvs/octave/configure.in,v
retrieving revision 1.479
diff -u -r1.479 configure.in
--- configure.in 15 Jun 2005 03:45:47 -0000 1.479
+++ configure.in 14 Jul 2005 17:29:24 -0000
@@ -850,7 +850,7 @@
SHLEXT=dll
SHLLIB=dll.a
SHLBIN=dll
- SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import"
+ SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import
-Wl,--enable-auto-image-base"
SHLLINKEXT=.dll
SONAME_FLAGS='-Wl,address@hidden'
library_path_var=PATH