Put linker arguments in the proper flag

This commit is contained in:
Andrew Hyatt 2017-08-07 23:34:21 -07:00
parent 0c8f427abc
commit d0aac1d8f0

View File

@ -2,8 +2,6 @@ project(TextEdit)
add_compile_options(
-nostdinc
-Wl,-sectorder,__TEXT,__text,${CMAKE_CURRENT_SOURCE_DIR}/TextEdit.scatterload
-Wl,-e,start
-Wmost
-Wno-four-char-constants
-Wno-unknown-pragmas
@ -26,3 +24,4 @@ add_darling_executable(TextEdit
FontNameTransformer.m
PrintingTextView.m
)
set_target_properties(TextEdit PROPERTIES LINK_FLAGS "-Wl,-sectorder,__TEXT,__text,${CMAKE_CURRENT_SOURCE_DIR}/TextEdit.scatterload -Wl,-e,start")