n3ds: fix exported libraries of n3ds
This commit is contained in:
1 parent
b47b6e02fd
commit
f51f7fbb94
3 files changed
+47
-3
No files matched your search
+12
-1
@@ -2643,7 +2643,7 @@ elseif(PSP)
|
||||
)
|
||||
if(NOT SDL2_DISABLE_SDL2MAIN)
|
||||
list(INSERT SDL_LIBS 0 "-lSDL2main")
|
||||
endif(NOT SDL2_DISABLE_SDL2MAIN)
|
||||
endif()
|
||||
|
||||
elseif(PS2)
|
||||
list(APPEND EXTRA_CFLAGS "-DPS2" "-D__PS2__" "-I$ENV{PS2SDK}/ports/include" "-I$ENV{PS2DEV}/gsKit/include")
|
||||
@@ -2841,6 +2841,17 @@ elseif(N3DS)
|
||||
else()
|
||||
message_error("SDL_FILE must be enabled to build on N3DS")
|
||||
endif()
|
||||
|
||||
if(NOT SDL2_DISABLE_SDL2MAIN)
|
||||
list(INSERT SDL_LIBS 0 "-lSDL2main")
|
||||
endif()
|
||||
|
||||
foreach(lib ${CMAKE_C_STANDARD_LIBRARIES})
|
||||
if(lib MATCHES "^-l")
|
||||
string(SUBSTRING "${lib}" 2 -1 lib)
|
||||
endif()
|
||||
list(APPEND EXTRA_LIBS ${lib})
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
if(HAVE_VULKAN AND NOT SDL_LOADSO)
|
||||
|
||||
Reference in new issue
Block a user