|
|
@ -29,12 +29,3 @@ if (NOT STATIC_LINK AND NOT MSVC)
|
|
|
|
message("must ship compiler runtime libraries with this build: libwinpthread-1.dll, libgcc_s_dw2-1.dll, and libstdc++-6.dll")
|
|
|
|
message("must ship compiler runtime libraries with this build: libwinpthread-1.dll, libgcc_s_dw2-1.dll, and libstdc++-6.dll")
|
|
|
|
message("for release builds, turn on STATIC_LINK in cmake options")
|
|
|
|
message("for release builds, turn on STATIC_LINK in cmake options")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
if (STATIC_LINK)
|
|
|
|
|
|
|
|
set(LIBUV_USE_STATIC ON)
|
|
|
|
|
|
|
|
if (WOW64_CROSS_COMPILE)
|
|
|
|
|
|
|
|
link_libraries( -static-libstdc++ -static-libgcc -static -Wl,--image-base=0x10000,--large-address-aware,--dynamicbase,--pic-executable,-e,_mainCRTStartup,--subsystem,console:5.00 )
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
link_libraries( -static-libstdc++ -static-libgcc -static -Wl,--image-base=0x10000,--dynamicbase,--pic-executable,-e,mainCRTStartup )
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|