aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-03-08 13:26:08 +0100
committerYang Tse <yangsita@gmail.com>2013-03-08 13:27:45 +0100
commit70b5173410baaa67ccdb50382870012949549c3d (patch)
tree8c7fa34b3286dac4aecab1c57e6e581554914818 /tests/libtest
parenteacfb5d8a6d4ce9e3d17a87eae4d9356b56d9422 (diff)
configure: use XC_LIBTOOL for portability across libtool versions
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/Makefile.am10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am
index ba4097f8e..bc265f0e3 100644
--- a/tests/libtest/Makefile.am
+++ b/tests/libtest/Makefile.am
@@ -88,16 +88,18 @@ else
noinst_LTLIBRARIES =
endif
-if NO_UNDEFINED
-# The -no-undefined flag is crucial to build fine on some platforms
-UNDEF = -no-undefined
+libhostname_la_LDFLAGS_EXTRA = -module -avoid-version -rpath /nowhere
+
+if CURL_LT_SHLIB_USE_NO_UNDEFINED
+libhostname_la_LDFLAGS_EXTRA += -no-undefined
endif
+libhostname_la_LDFLAGS = $(AM_LDFLAGS) $(libhostname_la_LDFLAGS_EXTRA)
+
libhostname_la_SOURCES = sethostname.c sethostname.h
libhostname_la_LIBADD =
libhostname_la_DEPENDENCIES =
-libhostname_la_LDFLAGS = -module -avoid-version $(UNDEF) -rpath /nowhere
if DOING_CURL_SYMBOL_HIDING
libhostname_la_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_HIDDEN_SYMBOLS