Skip to content

Commit

Permalink
build: Pass --no-as-needed directly to the linker
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
orbea committed May 13, 2021
1 parent cb28cb4 commit 9c051d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/regression/ust/clock-override/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/ust/getcpu-override/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c051d4

Please sign in to comment.