diff options
author | Brian Inglis <Brian.Inglis@SystematicSW.ab.ca> | 2020-08-15 15:57:30 -0600 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-16 11:29:23 +0200 |
commit | ebae7d7c4a6465329360bc56d355b9d19bb3e9e6 (patch) | |
tree | 4a3bc403900df5d4568512bb8055e999a0ab96a1 | |
parent | d491916a4af268b7bb2cf6ec2fa00a5deb3479f0 (diff) | |
download | curl-ebae7d7c4a6465329360bc56d355b9d19bb3e9e6.tar.gz |
libtest/Makefile.am: add -no-undefined for libstubgss for Cygwin
copy the LDFLAGS approach for adding same option with `libhostname` in
`libtest/Makefile.am`:
- init `libstubgss_la_LDFLAGS_EXTRA` variable,
- add option to variable inside conditional,
- use variable in `libstubgss_la_LDFLAGS`
Fixes #5819
Closes #5820
-rw-r--r-- | tests/libtest/Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am index 07fdd9b7b..7f68abae9 100644 --- a/tests/libtest/Makefile.am +++ b/tests/libtest/Makefile.am @@ -91,8 +91,11 @@ libhostname_la_CPPFLAGS_EXTRA = libhostname_la_LDFLAGS_EXTRA = -module -avoid-version -rpath /nowhere libhostname_la_CFLAGS_EXTRA = +libstubgss_la_LDFLAGS_EXTRA = + if CURL_LT_SHLIB_USE_NO_UNDEFINED libhostname_la_LDFLAGS_EXTRA += -no-undefined +libstubgss_la_LDFLAGS_EXTRA += -no-undefined endif if CURL_LT_SHLIB_USE_MIMPURE_TEXT @@ -118,7 +121,7 @@ if BUILD_STUB_GSS noinst_LTLIBRARIES += libstubgss.la libstubgss_la_CPPFLAGS = $(AM_CPPFLAGS) -libstubgss_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version -rpath /nowhere +libstubgss_la_LDFLAGS = $(AM_LDFLAGS) $(libstubgss_la_LDFLAGS_EXTRA) -avoid-version -rpath /nowhere libstubgss_la_CFLAGS = $(AM_CFLAGS) -g libstubgss_la_SOURCES = stub_gssapi.c stub_gssapi.h |