summary refs log tree commit diff
path: root/pkgs/development/libraries/opencascade
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2016-02-26 18:38:15 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2016-03-05 18:55:26 +0100
commitaff1f4ab948b921ceaf2b81610f2f82454302b4b (patch)
tree6e51e90a41409d56cfa084b9ca64921f2611fafc /pkgs/development/libraries/opencascade
parenta2e449e43e82e258b94c723d92a5e9af641967e7 (diff)
downloadnixpkgs-aff1f4ab948b921ceaf2b81610f2f82454302b4b.tar
nixpkgs-aff1f4ab948b921ceaf2b81610f2f82454302b4b.tar.gz
nixpkgs-aff1f4ab948b921ceaf2b81610f2f82454302b4b.tar.bz2
nixpkgs-aff1f4ab948b921ceaf2b81610f2f82454302b4b.tar.lz
nixpkgs-aff1f4ab948b921ceaf2b81610f2f82454302b4b.tar.xz
nixpkgs-aff1f4ab948b921ceaf2b81610f2f82454302b4b.tar.zst
nixpkgs-aff1f4ab948b921ceaf2b81610f2f82454302b4b.zip
Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
Diffstat (limited to 'pkgs/development/libraries/opencascade')
-rw-r--r--pkgs/development/libraries/opencascade/6.5.nix2
-rw-r--r--pkgs/development/libraries/opencascade/default.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/opencascade/6.5.nix b/pkgs/development/libraries/opencascade/6.5.nix
index a1143757c77..86ab85cbb9a 100644
--- a/pkgs/development/libraries/opencascade/6.5.nix
+++ b/pkgs/development/libraries/opencascade/6.5.nix
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
   # https://bugs.freedesktop.org/show_bug.cgi?id=83631
     + " -DGLX_GLXEXT_LEGACY";
 
-  hardening_format = false;
+  hardeningDisable = [ "format" ];
 
   configureFlags = [ "--with-tcl=${tcl}/lib" "--with-tk=${tk}/lib" "--with-qt=${qt4}" "--with-ftgl=${ftgl}" "--with-freetype=${freetype}" ];
 
diff --git a/pkgs/development/libraries/opencascade/default.nix b/pkgs/development/libraries/opencascade/default.nix
index bcf1b747180..79c24be7514 100644
--- a/pkgs/development/libraries/opencascade/default.nix
+++ b/pkgs/development/libraries/opencascade/default.nix
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
   # https://bugs.freedesktop.org/show_bug.cgi?id=83631
   NIX_CFLAGS_COMPILE = "-DGLX_GLXEXT_LEGACY";
 
-  hardening_format = false;
+  hardeningDisable = [ "format" ];
 
   postInstall = ''
     mv $out/inc $out/include