commit 2933e3c3e66c5f7c6af0d0599eb6ec30c6b15ea2
parent c191b86987a41bf83a4296cbb339ab95692ed95b
Author: sin <sin@2f30.org>
Date: Fri, 27 Sep 2013 12:16:40 +0100
Add optldflags optcflags
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/prepare-env b/prepare-env
@@ -7,5 +7,9 @@ version=0.0
mirror=http://dl.2f30.org/morpheus-pkgs/$arch/$version
export top root libcroot nprocs mirror
+optldflags="-s -Wl,--gc-sections -Wl,-z,relro,-z,now"
+optcflags="-fdata-sections -ffunction-sections -Os -g0 -fno-unwind-tables -fno-asynchronous-unwind-tables -Wa,--noexecstack"
+export optldflags optcflags
+
PATH=$root/opt/cross/x86_64-linux-musl/bin:$top/stuff/bin:$PATH
export PATH