From 2ebbfe6460aef14b1db84a46c892c1a17742b6da Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 20 Dec 2016 15:24:13 +0000 Subject: Be explicit about -z,lazy as default linking is -z,now when hardened profile is picked up --- icespider/unittests/testCompile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icespider/unittests/testCompile.cpp b/icespider/unittests/testCompile.cpp index 06d9450..00862fa 100644 --- a/icespider/unittests/testCompile.cpp +++ b/icespider/unittests/testCompile.cpp @@ -111,7 +111,7 @@ BOOST_AUTO_TEST_CASE( testLink ) auto outputso = binDir / "testRoutes.so"; auto linkCommand = boost::algorithm::join>({ - "gcc", "-shared", "-Wl,--warn-once,--gc-sections", + "gcc", "-shared", "-Wl,--warn-once,--gc-sections,-z,lazy", "-o", outputso.string(), outputo.string(), }, " "); -- cgit v1.2.3