mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
Toolchain+LibC: Fix usage of crt files
We now configure the gcc spec files to use a different crt files for static & PIE binaries. This relieves us from the need to explicitly specify the desired crt0 file in cmake scripts.
This commit is contained in:
parent
6990d62977
commit
bbedd320b5
9 changed files with 32 additions and 20 deletions
|
@ -1,6 +1,5 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
../../Libraries/LibC/crt0_shared.cpp
|
||||
)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostartfiles -lgcc_s -pie -fpic ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue