netbsd: add cross target

This commit is contained in:
Matthew Bauer
2019-02-26 15:55:47 -05:00
committed by Matthew Bauer
parent 1b2675213c
commit aab8c7ba43
9 changed files with 727 additions and 333 deletions
@@ -291,6 +291,10 @@ stdenv.mkDerivation {
hardening_unsupported_flags+=" stackprotector pic"
''
+ optionalString targetPlatform.isNetBSD ''
hardening_unsupported_flags+=" stackprotector fortify"
''
+ optionalString (targetPlatform.libc == "newlib") ''
hardening_unsupported_flags+=" stackprotector fortify pie pic"
''