This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: stunnel build chokes on -no-undefined
- From: Andrew Schulman <schulman dot andrew at epa dot gov>
- To: cygwin-apps at cygwin dot com
- Date: Wed, 27 May 2015 10:04:11 -0400
- Subject: Re: stunnel build chokes on -no-undefined
- Authentication-results: sourceware.org; auth=none
- References: <oq19mapuld6fnjh1dsk4f1dr44tvt4sqkg at 4ax dot com> <oq19mapuld6fnjh1dsk4f1dr44tvt4sqkg-e09XROE/p8c at public dot gmane dot org> <5564934B dot 6010202 at lysator dot liu dot se> <fi69ma99pner390nf2u3v67ndvntfrcfsv at 4ax dot com> <fi69ma99pner390nf2u3v67ndvntfrcfsv-e09XROE/p8c at public dot gmane dot org> <5564DF47 dot 5010900 at lysator dot liu dot se>
> From a quick peek at the source, you should make this change in src/Makefile.am
>
> -libstunnel_la_LDFLAGS = -avoid-version
> +libstunnel_la_LDFLAGS = -avoid-version -no-undefined
Right - thanks. Yep, that takes care of it.
> and then hope that libstunnel has no undefined symbols that need to be
> provided by someone else to link a whole program. Most libraries do not
> have such undefined symbols. You can probably send that change upstream.
>
> Where did -Wl,-no-undefined come from?
It was added to CFLAGS in the cygport file. I don't remember why, but I
probably added it myself some time in the past. Oops. I've taken it out again
now.
Thanks a lot for your help.
Andrew