summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/4.8
diff options
context:
space:
mode:
authorBojan Nikolic <bojan@bnikolic.co.uk>2017-12-29 14:29:05 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-12-29 13:27:02 -0500
commit771bae04e8ebcef3f11a0be55c28a571181aa231 (patch)
tree592c5a0905d46ec540c301a383034b3eb7abdeaf /pkgs/development/compilers/gcc/4.8
parentd96cf0f46c2df4c83f6c518bca9869b789b07172 (diff)
downloadnixlib-771bae04e8ebcef3f11a0be55c28a571181aa231.tar
nixlib-771bae04e8ebcef3f11a0be55c28a571181aa231.tar.gz
nixlib-771bae04e8ebcef3f11a0be55c28a571181aa231.tar.bz2
nixlib-771bae04e8ebcef3f11a0be55c28a571181aa231.tar.lz
nixlib-771bae04e8ebcef3f11a0be55c28a571181aa231.tar.xz
nixlib-771bae04e8ebcef3f11a0be55c28a571181aa231.tar.zst
nixlib-771bae04e8ebcef3f11a0be55c28a571181aa231.zip
gcc: Enable SSP and shared libs in the final stage for MinGW
Hardening on by default now that we don't use the cross wrapper. In
turn, hardening requires libssp in particular.
Diffstat (limited to 'pkgs/development/compilers/gcc/4.8')
-rw-r--r--pkgs/development/compilers/gcc/4.8/default.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkgs/development/compilers/gcc/4.8/default.nix b/pkgs/development/compilers/gcc/4.8/default.nix
index 15529bd554a4..f7674bb11845 100644
--- a/pkgs/development/compilers/gcc/4.8/default.nix
+++ b/pkgs/development/compilers/gcc/4.8/default.nix
@@ -159,13 +159,9 @@ let version = "4.8.5";
             " --enable-threads=win32" +
             " --enable-sjlj-exceptions" +
             " --enable-hash-synchronization" +
-            " --disable-libssp" +
+            " --enable-libssp" +
             " --disable-nls" +
             " --with-dwarf2" +
-            # I think noone uses shared gcc libs in mingw, so we better do the same.
-            # In any case, mingw32 g++ linking is broken by default with shared libs,
-            # unless adding "-lsupc++" to any linking command. I don't know why.
-            " --disable-shared" +
             # To keep ABI compatibility with upstream mingw-w64
             " --enable-fully-dynamic-string"
             else (if targetPlatform.libc == "uclibc" then