This is the mail archive of the cygwin-apps 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]

stunnel build chokes on -no-undefined


In stunnel 5.17, the build of libstunnel.la fails with "can't build shared
library unless -no-undefined is specified":


/bin/sh ../libtool  --tag=CC   --mode=link gcc  -Wl,-no-undefined
-fdebug-prefix-map=/home/andrex/dev/cygwin/stunnel/stunnel-5.17-1.x86_64/build=/usr/src/debug/stunnel-5.17-1
-fdebug-prefix-map=/home/andrex/dev/cygwin/stunnel/stunnel-5.17-1.x86_64/src/stunnel-5.17=/usr/src/debug/stunnel-5.17-1
-Wall -Wextra -Wpedantic -Wformat=2 -Wconversion -Wno-long-long
-Wno-deprecated-declarations -fstack-protector -fPIE -D_FORTIFY_SOURCE=2
-avoid-version -fPIE -pie -o libstunnel.la -rpath /usr/lib env.lo  -lz   -lwrap
libtool:   error: can't build x86_64-unknown-cygwin shared library unless
-no-undefined is specified
Makefile:464: recipe for target 'libstunnel.la' failed


Of course, the libtool command does include -Wl,-no-undefined.  I don't know
much about this, but I do seem to recall that the linker flags should come at
the end, or something like that.

Could anyone please suggest a solution?  I'm attaching stunnel.cygport, and
src/Makefile.am from which the above command was generated.  Please let me know
if there are other files I should provide.

Thanks,
Andrew

Attachment: stunnel.cygport
Description: Binary data

Attachment: Makefile.am
Description: Binary data


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