commit db846f717b90c587b1934c65dd973e0ba0f14acd
Author: Nicolas Vigier <boklm(a)mars-attacks.org>
Date: Tue Nov 8 17:20:36 2016 +0100
fixup! TB3: Tor Browser's official .mozconfigs.
Bug 20439: make the build PIE on OSX
---
.mozconfig-mac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.mozconfig-mac b/.mozconfig-mac
index 96f036a..cda309a 100644
--- a/.mozconfig-mac
+++ b/.mozconfig-mac
@@ -10,7 +10,7 @@ export CC="$topsrcdir/clang/bin/clang $FLAGS"
export CXX="$topsrcdir/clang/bin/clang++ $FLAGS"
export CPP="$topsrcdir/clang/bin/clang $FLAGS -E"
export LLVMCONFIG=$topsrcdir/clang/bin/llvm-config
-export LDFLAGS="-Wl,-syslibroot,$CROSS_SYSROOT -Wl,-dead_strip"
+export LDFLAGS="-Wl,-syslibroot,$CROSS_SYSROOT -Wl,-dead_strip -Wl,-pie"
export TOOLCHAIN_PREFIX=$CROSS_CCTOOLS_PATH/bin/x86_64-apple-darwin10-
#TODO: bug 1184202 - would be nice if these could be detected with TOOLCHAIN_PREFIX automatically
export AR=${TOOLCHAIN_PREFIX}ar