lprof: add hardeningDisable to environment during build

This commit is contained in:
Robin Gloster 2016-08-29 01:58:16 +00:00
parent f81b2da3d4
commit 56158004b5
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882

View File

@ -30,6 +30,7 @@ stdenv.mkDerivation {
-e "s/not config.CheckHeader('tiff.h')/False/" \
-e "s/not config.CheckCXXHeader('vigra\/impex.hxx')/False/" \
\
-e "s/^\( 'LDFLAGS'.*\)/\1\n,'hardeningDisable' : os.environ['hardeningDisable']/" \
-e "s/^\( 'LDFLAGS'.*\)/\1\n,'NIX_CFLAGS_COMPILE' : os.environ['NIX_CFLAGS_COMPILE']/" \
-e "s/^\( 'LDFLAGS'.*\)/\1\n,'NIX_LDFLAGS' : os.environ['NIX_LDFLAGS']/"