mirror of https://github.com/oxen-io/lokinet
LIBUV_ROOT override for win32
emit PIC code (.reloc) on win32 for aslr
This commit is contained in:
parent
f8bec34f80
commit
45890133bc
|
@ -255,7 +255,9 @@ if(SUBMODULE_CHECK)
|
|||
check_submodule(external/ghc-filesystem)
|
||||
check_submodule(external/date)
|
||||
check_submodule(external/pybind11)
|
||||
check_submodule(external/libuv)
|
||||
if (NOT WIN32) # we grab libuv for windows separately in win32-setup/libuv. see note in cmake/win32.cmake.
|
||||
check_submodule(external/libuv)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
|
@ -28,8 +28,17 @@ if (NOT STATIC_LINK AND NOT MSVC)
|
|||
message("for release builds, turn on STATIC_LINK in cmake options")
|
||||
endif()
|
||||
|
||||
# win32 is the last platform for which we grab libuv manually
|
||||
# if you want to use the included submodule do
|
||||
# cmake .. -G Ninja -DLIBUV_ROOT=../external/libuv.
|
||||
# otherwise grab mine (github.com/despair86/libuv.git) if you need to run on older hardware
|
||||
# and clone to win32-setup/libuv
|
||||
# then
|
||||
# cmake .. -G Ninja -DLIBUV_ROOT=../win32-setup/libuv
|
||||
# it is literally upward compatible with current windows 10
|
||||
if (STATIC_LINK)
|
||||
set(LIBUV_USE_STATIC ON)
|
||||
link_libraries( -static-libstdc++ -static-libgcc -static -Wl,--image-base=0x10000,--large-address-aware,--dynamicbase,--pic-executable,-e,_mainCRTStartup,--subsystem,console:5.00 )
|
||||
endif()
|
||||
|
||||
if(LIBUV_ROOT)
|
||||
|
|
Loading…
Reference in New Issue