summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorFlorian Franzmann2020-12-20 14:02:55 +0100
committerFlorian Franzmann2020-12-20 14:03:07 +0100
commit0bca7b8708f4677a8d69fa0706c033927ac068c6 (patch)
tree21d06d90a6c29cd29ef3bfdab953182d0c17e515 /FUNCTIONS
parent6327cee48c3092ee7fba1a33a52dd155541d99ba (diff)
FUNCTIONS: add disable_as_needed()
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS8
1 files changed, 8 insertions, 0 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 9d2c8fbc56..2edf7b3c0d 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -606,6 +606,14 @@ disable_z_now() {
}
#---
+## disable_as_needed
+## A function for disabling -Wl,--as-needed
+#---
+disable_as_needed() {
+ LDFLAGS=${LDFLAGS//-Wl,--as-needed}
+}
+
+#---
## disable_gc_sections
## A function for disabling garbage collection in the linker
#---