This is the mail archive of the cygwin@sourceware.cygnus.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]

Re: libXpm.dll doesn't build with B20.1


"Dr. Volker Zell" <vzell@de.oracle.com> writes:
> if [ -f /tmp/DLL_BASE_COUNTER ]; then true; \
> else echo 0x67000000 > /tmp/DLL_BASE_COUNTER; fi
> dllwrap -s --def Xpm.def --output-lib libXpm.a -o libXpm.dll data.o create.o 
> misc.o rgb.o scan.o parse.o hashtab.o 	 CrBufFrI.o CrDatFrP.o CrPFrBuf
> .o RdFToI.o WrFFrI.o 	 CrBufFrP.o CrIFrBuf.o CrPFrDat.o RdFToP.o WrFFrP.o 
> 	 CrDatFrI.o CrIFrDat.o RdFToDat.o WrFFrDat.o 	 Attrib.o CrIFrP.o CrPF
> rI.o Image.o Info.o RdFToBuf.o WrFFrBuf.o junk.o  -image-base `cat /tmp/DLL_B

Remember that you're creating shared library for win32, which needs to
resolve *all* symbols at link time, and as a consequence you must specify 
all the dependent libraries when building the DLL (eg., -lX11 etc).

fyi, if you don't explicitly specify an image base, dllwrap generates one 
based on the output filename (uses a simple hashing algorithm) and may be 
sufficient for 99% of the time. Unless of course you need to specify it 
for some other reason. ``dllwrap --dry-run ...'' shows what it's going to 
do without actually doing it.

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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