Skip to content

Commit 5874b53

Browse files
committed
Fix macOS build
1 parent 9affc87 commit 5874b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ if (ARCH STREQUAL "x86_64" OR ARCH STREQUAL "x86")
155155
endif(APPLE)
156156

157157
if (APPLE)
158-
set(CMAKE_NASM_LINK_EXECUTABLE "ld <LINK_FLAGS> -no_new_main -macos_version_min 10.7.0 -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
158+
set(CMAKE_NASM_LINK_EXECUTABLE "ld <LINK_FLAGS> -e _start -macos_version_min 10.7.0 -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
159159
elseif (WIN32)
160160
set(CMAKE_NASM_LINK_EXECUTABLE "link <OBJECTS> <LINK_FLAGS> /ENTRY:WinMain /SUBSYSTEM:CONSOLE /LARGEADDRESSAWARE:NO /DYNAMICBASE:NO /OUT:<TARGET> <LINK_LIBRARIES>")
161161
else()

0 commit comments

Comments
 (0)