We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b122f38 commit 9affc87Copy full SHA for 9affc87
CMakeLists.txt
@@ -155,7 +155,7 @@ if (ARCH STREQUAL "x86_64" OR ARCH STREQUAL "x86")
155
endif(APPLE)
156
157
if (APPLE)
158
- set(CMAKE_NASM_LINK_EXECUTABLE "ld <LINK_FLAGS> -macos_version_min 10.7.0 -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
+ 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>")
159
elseif (WIN32)
160
set(CMAKE_NASM_LINK_EXECUTABLE "link <OBJECTS> <LINK_FLAGS> /ENTRY:WinMain /SUBSYSTEM:CONSOLE /LARGEADDRESSAWARE:NO /DYNAMICBASE:NO /OUT:<TARGET> <LINK_LIBRARIES>")
161
else()
0 commit comments