From: orbea Date: Thu, 13 May 2021 18:10:56 +0000 (-0700) Subject: build: Pass --no-as-needed directly to the linker X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=85e85782438e24a676f45c368d7a63ba1dac2ded;p=lttng-tools.git build: Pass --no-as-needed directly to the linker This is not a libtool argument, but rather a linker argument. GNU libtool will silently ignore arguments it doesn't understand in many cases while slibtool does not. Signed-off-by: orbea Signed-off-by: Jérémie Galarneau Change-Id: I55e55f1bb6a5d14d1c81505ceb39beaef84af9e9 --- diff --git a/tests/regression/ust/clock-override/Makefile.am b/tests/regression/ust/clock-override/Makefile.am index 9495bca05..ff6c6a292 100644 --- a/tests/regression/ust/clock-override/Makefile.am +++ b/tests/regression/ust/clock-override/Makefile.am @@ -17,7 +17,7 @@ GETCPU_LIBTOOL_FLAGS = \ -module \ -shared \ -avoid-version \ - --no-as-needed \ + -Wl,--no-as-needed \ -rpath $(abs_builddir) noinst_LTLIBRARIES = lttng-ust-clock-override-test.la diff --git a/tests/regression/ust/getcpu-override/Makefile.am b/tests/regression/ust/getcpu-override/Makefile.am index 3eb254366..0c04961ec 100644 --- a/tests/regression/ust/getcpu-override/Makefile.am +++ b/tests/regression/ust/getcpu-override/Makefile.am @@ -18,7 +18,7 @@ GETCPU_LIBTOOL_FLAGS = \ -module \ -shared \ -avoid-version \ - --no-as-needed \ + -Wl,--no-as-needed \ -rpath $(abs_builddir) noinst_LTLIBRARIES = lttng-ust-getcpu-override-test.la