mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
Kernel: Always build the kernel without default libs
When building the kernel from within SerenityOS we would link it against default libs which doesn't really make sense to me.
This commit is contained in:
parent
a6c4a4d2fc
commit
18f8d08b98
Notes:
sideshowbarker
2024-07-18 08:28:40 +09:00
Author: https://github.com/gunnarbeutner
Commit: 18f8d08b98
Pull-request: https://github.com/SerenityOS/serenity/pull/8957
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/dascandy ✅
1 changed files with 1 additions and 4 deletions
|
@ -351,10 +351,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-strong")
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions")
|
||||
# Zero any registers used within a function on return (to reduce data lifetime and ROP gadgets).
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fzero-call-used-regs=used-gpr")
|
||||
|
||||
if (NOT ${CMAKE_HOST_SYSTEM_NAME} MATCHES SerenityOS)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib -nostdinc -nostdinc++")
|
||||
endif()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib -nostdinc -nostdinc++")
|
||||
|
||||
if ("${SERENITY_ARCH}" STREQUAL "x86_64")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcmodel=large -mno-red-zone")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue