This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANN] apache_1.3.22-2


Stipe Tolj wrote:


>   * changed the dependant lib linking flag from -lgdbm to -lgdbm.dll
> to use
>     the shared import library for mod_rewrite.


Again I say, this should not be necessary.  The linker, ld, will 
automatically search FIRST for the import lib libgdbm.dll.a BEFORE 
searching for the static lib libgdbm.a.  The only way to change this 
behavior is to call 'ld -Bstatic' (aka 'ld -static') or 'gcc -static' to 
FORCE ld to search only for libgdbm.a.

If you were previously linking with a command similar to:

ld -o foo foo.o -lgdbm

but foo was created by linking statically against libgdbm.a -- then that 
is a bug (or installation error).  Please do NOT do wacky things like 
add ".dll" to the end of a library spec.

--Chuck



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]