Closed GoogleCodeExporter closed 9 years ago
This patch snipplet would solve the problem.
Index: libmodman/test/CMakeLists.txt
===================================================================
--- libmodman/test/CMakeLists.txt (revision 12)
+++ libmodman/test/CMakeLists.txt (working copy)
@@ -28,6 +28,8 @@
set_property(TARGET ${name} PROPERTY
COMPILE_DEFINITIONS
EXTTYPE=${EXTTYPE}_extension;SYMB=1)
+ set_property(TARGET ${name} PROPERTY
+ LINK_FLAGS -Wl,--no-as-needed)
endif()
endfunction(mm_create_program)
Any objections of pushing that to libproxy (and libmodman) source tree?
Original comment by dominiqu...@gmail.com
on 23 Jun 2010 at 12:17
If setting this overrides the -Wl,-as-needed, then I'm all for it (especially
since it is limited to just the tests.
Original comment by npmccallum@gmail.com
on 23 Jun 2010 at 12:22
Yep, it overrides the as-needed for the testsuite, but only for cases where
more than 2 args are passed to mm_create_program. So rather specialized when
it's set.
I'll commit this to libmodman (external) and libmodman in libproxy tree in this
case.
Original comment by dominiqu...@gmail.com
on 23 Jun 2010 at 1:09
Good for me, it's aligned with the way GCC options works too.
Original comment by nicolas.dufresne@gmail.com
on 23 Jun 2010 at 3:01
The fix has been commited (libproxy r705)
Original comment by dominiqu...@gmail.com
on 23 Jun 2010 at 5:00
Original comment by nicolas.dufresne@gmail.com
on 19 Aug 2010 at 4:14
Original issue reported on code.google.com by
dominiqu...@gmail.com
on 7 Jun 2010 at 9:07