stunnel build chokes on -no-undefined
Andrew Schulman
schulman.andrew@epa.gov
Tue May 26 14:55:00 GMT 2015
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stunnel.cygport
Type: application/octet-stream
Size: 999 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20150526/93ac0997/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.am
Type: application/octet-stream
Size: 969 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20150526/93ac0997/attachment-0001.obj>
More information about the Cygwin-apps
mailing list