From 86d7ea6555a069e35d8af9189b61f6df017baa4a Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Mon, 25 Nov 2024 13:51:10 +0100 Subject: [PATCH 1/2] enable --as-needed flag for scram projects --- scram-tools.file/tools/gcc/env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scram-tools.file/tools/gcc/env.sh b/scram-tools.file/tools/gcc/env.sh index 189e65b20db..81447726435 100644 --- a/scram-tools.file/tools/gcc/env.sh +++ b/scram-tools.file/tools/gcc/env.sh @@ -22,7 +22,7 @@ if [ $(uname -s) = "Darwin" ] ; then OS_LD_UNIT="-r" else OS_SHAREDFLAGS="-shared -Wl,-E" - OS_LDFLAGS="-Wl,-E -Wl,--hash-style=gnu" + OS_LDFLAGS="-Wl,-E -Wl,--hash-style=gnu -Wl,--as-needed" OS_CXXFLAGS="-Werror=overflow" OS_FFLAGS="-cpp" OS_LD_UNIT="-r -z muldefs" From c7d167e075422b1a1616ccbf01d043336c5ef105 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Mon, 25 Nov 2024 17:46:48 +0100 Subject: [PATCH 2/2] fix order to linking lhapdfand pythia6 libs --- scram-tools.file/tools/lhapdf/lhapdf.xml | 3 +-- scram-tools.file/tools/pythia6/pythia6.xml | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scram-tools.file/tools/lhapdf/lhapdf.xml b/scram-tools.file/tools/lhapdf/lhapdf.xml index 23240ec642a..4ba3cc3567f 100644 --- a/scram-tools.file/tools/lhapdf/lhapdf.xml +++ b/scram-tools.file/tools/lhapdf/lhapdf.xml @@ -1,11 +1,10 @@ - + - diff --git a/scram-tools.file/tools/pythia6/pythia6.xml b/scram-tools.file/tools/pythia6/pythia6.xml index 861bd317fa4..8545795372b 100644 --- a/scram-tools.file/tools/pythia6/pythia6.xml +++ b/scram-tools.file/tools/pythia6/pythia6.xml @@ -1,10 +1,11 @@ - + +