diff --git a/Core/BuildHooks/BuildHooks.lua b/Core/BuildHooks/BuildHooks.lua index 3c64aa8..cf19a30 100644 --- a/Core/BuildHooks/BuildHooks.lua +++ b/Core/BuildHooks/BuildHooks.lua @@ -67,7 +67,7 @@ local function addUserDestCopy(name, type, config, platformName, arch, dir) platform.devChainSupportsElfStrip and config ~= Aurora.Settings.sNameOfDebug) then local debugSymbolPath = normalizeCpyPath(Aurora.Settings.sAbsSymbols) .. "/" .. name .. ".dwarf" - postbuildcommands("objcopy --strip-debug \"" .. file .. "\" \"" .. outputPath .. "\"") + postbuildcommands("objcopy --strip-debug --strip-unneeded --strip-symbol \"" .. file .. "\" \"" .. outputPath .. "\"") if (Aurora.Settings.bUseAuBuildHooks and config ~= Aurora.Settings.sNameOfShip) then postbuildcommands("objcopy --add-gnu-debuglink=\"" .. debugSymbolPath .. "\" \"" .. outputPath .. "\"") end