libressl: fix static build
I broke the static build when I introduced the check that guards against executable stack. It iterates the .so files in the build output, but for a static build, there are none, so the glob fails. Fix this by skipping the check for static builds.
This commit is contained in:
@@ -64,7 +64,7 @@ let
|
||||
export PREVIOUS_${ldLibPathEnvName}=$${ldLibPathEnvName}
|
||||
export ${ldLibPathEnvName}="$${ldLibPathEnvName}:$(realpath tls/):$(realpath ssl/):$(realpath crypto/)"
|
||||
''
|
||||
+ lib.optionalString stdenv.hostPlatform.isElf ''
|
||||
+ lib.optionalString (stdenv.hostPlatform.isElf && buildShared) ''
|
||||
# Bail if any shared object has executable stack enabled. This can
|
||||
# happen when an object produced from an assmbly file in libcrypto is
|
||||
# missing a .note.GNU-stack section. An executable stack is dangerous
|
||||
|
||||
Reference in New Issue
Block a user