netbsd.mkDerivation: don't supply -z relro

Fixes netbsd.locale

Fixes: aab8c7ba43 ('netbsd: add cross target')
This commit is contained in:
Dmitry Kalinkin 2019-04-10 17:35:08 -04:00
parent 1548084c3b
commit 81ab32e510
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -65,6 +65,8 @@ let
platforms = platforms.unix;
license = licenses.bsd2;
};
} // lib.optionalAttrs stdenv'.isDarwin {
MKRELRO = "no";
} // lib.optionalAttrs (stdenv'.cc.isClang or false) {
HAVE_LLVM = lib.head (lib.splitString "." (lib.getVersion stdenv'.cc.cc));
} // lib.optionalAttrs (stdenv'.cc.isGNU or false) {