diff --git a/cmake/targets/BuildBun.cmake b/cmake/targets/BuildBun.cmake index 06e4b511e7..9be2ff75b5 100644 --- a/cmake/targets/BuildBun.cmake +++ b/cmake/targets/BuildBun.cmake @@ -980,6 +980,12 @@ if(LINUX) -Wl,--build-id=sha1 # Better for debugging than default -Wl,-Map=${bun}.linker-map ) + if(RELEASE) + target_link_options(${bun} PUBLIC + -Wl,--emit-relocs + -Wl,-q + ) + endif() endif() # --- Symbols list ---