Commit d02a1979 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Stop using -Wl,-no_pie on OS X

Now that the in-tree gmp has been upgraded, it should no longer be
necessary, according to #5293.
parent 62f21593
......@@ -1666,15 +1666,13 @@ linkBinary dflags o_files dep_packages = do
then ["-Wl,--enable-auto-import"]
else [])
-- '-no_pie' - On OS X, the linker otherwise complains that it cannot build
-- position independent code due to some offensive code in GMP.
-- '-no_compact_unwind'
-- - C++/Objective-C exceptions cannot use optimised stack
-- unwinding code (the optimised form is the default in Xcode 4 on
-- x86_64).
++ (if platformOS (targetPlatform dflags) == OSDarwin &&
++ (if platformOS (targetPlatform dflags) == OSDarwin &&
platformArch (targetPlatform dflags) == ArchX86_64
then ["-Wl,-no_pie", "-Wl,-no_compact_unwind"]
then ["-Wl,-no_compact_unwind"]
else [])
++ o_files
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment