build: Pass --no-as-needed directly to the linker
authororbea <orbea@riseup.net>
Thu, 13 May 2021 18:10:56 +0000 (11:10 -0700)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 7 Jun 2021 15:05:06 +0000 (11:05 -0400)
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 <orbea@riseup.net>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I55e55f1bb6a5d14d1c81505ceb39beaef84af9e9

tests/regression/ust/clock-override/Makefile.am
tests/regression/ust/getcpu-override/Makefile.am

index 9495bca053424ebdd995acaa3fa42df8d24aecab..ff6c6a2924ca2ad744e064c03dc13049dc099dd3 100644 (file)
@@ -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
index 3eb25436679e0f1da2388c5824c4a635e46c1a9b..0c04961ec48917c6660a3619611c7874027a1863 100644 (file)
@@ -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
This page took 0.025575 seconds and 4 git commands to generate.