Skip to content

Commit

Permalink
Add needed linker options for MiNT
Browse files Browse the repository at this point in the history
  • Loading branch information
th-otto committed Mar 24, 2024
1 parent 77e2da0 commit a223e21
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion redalert/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ if(BUILD_VANILLARA)
if(MSVC)
target_link_options(VanillaRA PRIVATE /subsystem:windows /ENTRY:mainCRTStartup)
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "m68k-atari-mint")
target_link_options(VanillaRA PRIVATE -Wl,-stack,512k -Wl,--msuper-memory -Wl,-Map,../vanillara.map)
endif()
if(WIN32 AND NOT MSVC)
set_target_properties(VanillaRA PROPERTIES LINK_FLAGS "-mwindows")
endif()
Expand All @@ -280,4 +283,4 @@ if(BUILD_VANILLARA)
-g3 -fno-omit-frame-pointer)
target_link_options(VanillaRA PUBLIC -fsanitize=address)
endif()
endif()
endif()
3 changes: 3 additions & 0 deletions tiberiandawn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ if(BUILD_VANILLATD)
if(MSVC)
target_link_options(VanillaTD PRIVATE /subsystem:windows /ENTRY:mainCRTStartup)
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "m68k-atari-mint")
target_link_options(VanillaTD PRIVATE -Wl,-stack,512k -Wl,--msuper-memory -Wl,-Map,../vanillatd.map)
endif()
if(WIN32 AND NOT MSVC)
set_target_properties(VanillaTD PROPERTIES LINK_FLAGS "-mwindows")
endif()
Expand Down
5 changes: 4 additions & 1 deletion tools/mixtool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ target_link_libraries(vanillamix PUBLIC common miniposix ${STATIC_LIBS})

if (WIN32)
target_compile_definitions(vanillamix PRIVATE -DNOMINMAX)
endif()
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "m68k-atari-mint")
target_link_options(vanillamix PRIVATE -Wl,-stack,512k)
endif()

0 comments on commit a223e21

Please sign in to comment.