Skip to content

Commit

Permalink
enable --as-needed flag for scram projects
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Nov 25, 2024
1 parent acf86f6 commit 86d7ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scram-tools.file/tools/gcc/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 86d7ea6

Please sign in to comment.