From 63288690bbc1a98f1e97d4fd154729bd65eba75e Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Wed, 3 Aug 2022 18:13:51 -0300 Subject: [PATCH] build: force linkage of all module libraries to scratches --- scratch/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scratch/CMakeLists.txt b/scratch/CMakeLists.txt index 3a269b22d..baf55ace9 100644 --- a/scratch/CMakeLists.txt +++ b/scratch/CMakeLists.txt @@ -52,8 +52,8 @@ function(create_scratch source_files) ) else() target_link_libraries( - ${target_prefix}${scratch_name} "${ns3-libs}" "${ns3-contrib-libs}" - "${ns3-external-libs}" + ${target_prefix}${scratch_name} ${LIB_AS_NEEDED_PRE} "${ns3-libs}" "${ns3-contrib-libs}" + "${ns3-external-libs}" ${LIB_AS_NEEDED_POST} ) endif() set_runtime_outputdirectory(