mirror of
https://github.com/RGBCube/serenity
synced 2025-10-21 06:52:31 +00:00

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.
10 lines
237 B
CMake
10 lines
237 B
CMake
set(SOURCES
|
|
main.cpp
|
|
)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostartfiles -lgcc_s -pie -fpic ")
|
|
|
|
serenity_bin(DynamicObjectDemo)
|
|
target_link_libraries(DynamicObjectDemo SampleLib LibC LibCore LibGUI)
|
|
|
|
add_subdirectory(SampleLib)
|