[PATCH/Cygwin] Build shared libs with --enable-auto-image-base

C

Corinna Vinschen

Hi,

in the Cygwin net distribution I started to build the ruby package
with the additional -Wl,--enable-auto-image-base flag in the DLDFLAGS
Makefile variable. The idea is to avoid the neccessity to rebase the
shared libs as much as possible. I'm wondering if you'd like to apply
the below patch to the ruby configure.in file, which accomplishes this
behaviour.

--- configure.in.ORIG 2007-02-27 12:57:20.012314100 +0100
+++ configure.in 2007-02-27 11:48:54.848883000 +0100
@@ -1030,7 +1030,7 @@ if test "$with_dln_a_out" != yes; then
rb_cv_dlopen=yes;;
cygwin*|mingw*) : ${LDSHARED="${CC} -shared -s"}
XLDFLAGS="$XLDFLAGS -Wl,--stack,0x02000000"
- DLDFLAGS="${DLDFLAGS} -Wl,--enable-auto-import,--export-all"
+ DLDFLAGS="${DLDFLAGS} -Wl,--enable-auto-image-base -Wl,--enable-auto-import,--export-all"
: ${LIBPATHENV=""}
rb_cv_dlopen=yes ;;
hiuxmpp) : ${LDSHARED='ld -r'} ;;

Btw., what I don't quite understand is this: What is the cygwin
subdirectory with the GNUMakefile.in for? It uses old and deprecated
methods like using dllwrap to create shared libs on Cygwin. However, I
never used it to build the Cygwin net distro ruby package, which always
worked fine. So I'm wondering if the cygwin subdir and the funny
GNUMakefile.in could just be removed.


Thanks,
Corinna
 
C

Corinna Vinschen

Corinna said:
Btw., what I don't quite understand is this: What is the cygwin
subdirectory with the GNUMakefile.in for? It uses old and deprecated
methods like using dllwrap to create shared libs on Cygwin. However, I
never used it to build the Cygwin net distro ruby package, which always
^^^^
but the normal Makefile instead
worked fine. So I'm wondering if the cygwin subdir and the funny
GNUMakefile.in could just be removed.


Corinna
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top