]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
build: fix libgcc_s.so.1 issue
authortobtoht <tob@featherwallet.org>
Mon, 29 Apr 2024 02:13:04 +0000 (04:13 +0200)
committertobtoht <tob@featherwallet.org>
Mon, 29 Apr 2024 02:36:06 +0000 (04:36 +0200)
CMakeLists.txt

index 0cb79f3d8497ec7a0ae374baaa19793f22bcda2e..09129a5176155684854568cd793201066dd7f4f6 100644 (file)
@@ -287,10 +287,13 @@ if (WIN32)
 endif()
 
 if(STATIC)
-#    add_linker_flag_if_supported(-static-libgcc STATIC_FLAGS)
-#    add_linker_flag_if_supported(-static-libstdc++ STATIC_FLAGS)
     if(MINGW)
         add_linker_flag_if_supported(-static STATIC_FLAGS)
+    elseif (NOT (APPLE OR FREEBSD OR OPENBSD OR DRAGONFLY))
+        if(NOT "${ARCH}" STREQUAL "armv7-a")
+            add_linker_flag_if_supported(-static-libgcc STATIC_FLAGS)
+            add_linker_flag_if_supported(-static-libstdc++ STATIC_FLAGS)
+        endif()
     endif()
 endif()