diff options
| author | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2024-03-22 14:21:57 +0100 |
|---|---|---|
| committer | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2024-03-22 14:21:57 +0100 |
| commit | 380f3f41e62cb72ed24e4f46df78f36f8e28c6d6 (patch) | |
| tree | e536ad49963dcf85d176bed157059f7d8397c224 /libbridge/CMakeLists.txt | |
| parent | 8775db7e945552e4f23c429dde4ddf91d974a5a2 (diff) | |
wow + build
Diffstat (limited to 'libbridge/CMakeLists.txt')
| -rw-r--r-- | libbridge/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libbridge/CMakeLists.txt b/libbridge/CMakeLists.txt index 2679186..5fa728e 100644 --- a/libbridge/CMakeLists.txt +++ b/libbridge/CMakeLists.txt @@ -16,6 +16,18 @@ elseif(${HOST_ABI} STREQUAL "i686-w64-mingw32") # set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) endif() +# if (MINGW) +# # On Windows, this is as close to fully-static as we get: +# # this leaves only deps on /c/Windows/system32/*.dll +# set(STATIC_FLAGS "-static ") +# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector") +# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector") +# elseif (NOT (APPLE OR FREEBSD OR OPENBSD OR DRAGONFLY)) +# # On Linux, we don't support fully static build, but these can be static +# set(STATIC_FLAGS "-static-libgcc -static-libstdc++") +# endif() +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${STATIC_FLAGS} -fstack-protector") + add_library( wallet2_api_c SHARED src/main/cpp/helpers.cpp |
