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:
Ruud van Asseldonk
2026-06-25 21:22:22 +02:00
parent 03357d8771
commit 2c9c1c82ef
+1 -1
View File
@@ -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