From e3595cbf381de564f18db61ef56fd74b92a87c65 Mon Sep 17 00:00:00 2001 From: orbea Date: Thu, 13 May 2021 11:10:56 -0700 Subject: [PATCH] build: Pass --no-as-needed directly to the linker MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- tests/regression/ust/clock-override/Makefile.am | 2 +- tests/regression/ust/getcpu-override/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1