diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildRunner.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildRunner.java index 56345395ae014..c5acdbab3a975 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildRunner.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildRunner.java @@ -72,10 +72,9 @@ public Result build(List args, String nativeImageName, String resultingE if (objcopyExists) { if (debugSymbolsEnabled) { splitDebugSymbols(nativeImageName, resultingExecutableName); - } else { - // Strip debug symbols regardless, because the underlying JDK might contain them - objcopy("--strip-debug", resultingExecutableName); } + // Strip debug symbols regardless, because the underlying JDK might contain them + objcopy("--strip-debug", resultingExecutableName); } else if (SystemUtils.IS_OS_LINUX) { log.warn( "objcopy executable not found in PATH. Debug symbols will therefore not be separated from the executable.");