[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

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

Corinna Vinschen

2/27/2007 12:10:00 PM

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

--
Antworten an o.g. (existierende) Adresse werden ungelesen verworfen.
Private Mails bitte an corinnaPLOPvinschenPINGde.
1 Answer

Corinna Vinschen

2/27/2007 12:12:00 PM

0

Corinna Vinschen wrote:
> 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

--
Antworten an o.g. (existierende) Adresse werden ungelesen verworfen.
Private Mails bitte an corinnaPLOPvinschenPINGde.