From 70b5173410baaa67ccdb50382870012949549c3d Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 8 Mar 2013 13:26:08 +0100 Subject: configure: use XC_LIBTOOL for portability across libtool versions --- tests/libtest/Makefile.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/libtest') 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 -- cgit v1.2.3