mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
Kernel: Add $SERENITY_KERNEL_CUSTOM_{CXXFLAGS/LDFLAGS} for build customization
I normally want to build with debug symbols for the kernel so I can use a debugger. Add a hook to allow me to do so, but to impact no-one else.
This commit is contained in:
parent
54fc972a72
commit
7cc7d303e3
Notes:
sideshowbarker
2024-07-19 07:43:52 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/7cc7d303e32 Pull-request: https://github.com/SerenityOS/serenity/pull/1738
1 changed files with 2 additions and 2 deletions
|
@ -140,11 +140,11 @@ KERNEL = 1
|
|||
PROGRAM = kernel
|
||||
|
||||
SUBPROJECT_CXXFLAGS += -pie -fPIE -ffreestanding -fbuiltin -mno-80387 -mno-mmx -mno-sse -mno-sse2 -fno-asynchronous-unwind-tables
|
||||
SUBPROJECT_CXXFLAGS += -nostdlib -nostdinc -nostdinc++
|
||||
SUBPROJECT_CXXFLAGS += -nostdlib -nostdinc -nostdinc++ $(SERENITY_KERNEL_CUSTOM_CXXFLAGS)
|
||||
SUBPROJECT_CXXFLAGS += -I../Toolchain/Local/i686-pc-serenity/include/c++/9.3.0/
|
||||
SUBPROJECT_CXXFLAGS += -I../Toolchain/Local/i686-pc-serenity/include/c++/9.3.0/i686-pc-serenity/
|
||||
|
||||
LDFLAGS += -Wl,-T linker.ld -nostdlib -lgcc -lstdc++
|
||||
LDFLAGS += -Wl,-T linker.ld -nostdlib -lgcc -lstdc++ $(SERENITY_KERNEL_CUSTOM_LDFLAGS)
|
||||
|
||||
all: $(PROGRAM) $(MODULE_OBJS) kernel.map
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue