On 5/16/2024 4:24 PM, Brian Inglis via Cygwin-apps wrote:
Hi folks,
Trying to update dateutils, autotools build fails with:
libtool: error: can't build x86_64-pc-cygwin shared library unless
-no-undefined is specified
Suggestions for overrides or fixes?
Tried:
LDFLAGS="$LDFLAGS -Wl,--no-allow-shlib-undefined -Wl,--no-undefined"
CYGCONF_ARGS="
--enable-contrib
--enable-tzmap-fetch
lt_no_undefined_flag=--no-undefined
no_undefined_flag=--no-undefined
You and I discussed this a few years ago in connection with curl. The
solution there, and in most similar cases, is to add -no-undefined to
the appropriate lib*_la_LDFLAGS variable(s) in Makefile.am. See
https://cygwin.com/pipermail/cygwin-apps/2020-August/040411.html
Ken