Files
macports-ports/security/libfido2/files/patch-apple-gcc.diff
Blake GarnerandHerby Gillot 5322ce0b5f libfido2: update to 1.17.0
* switch to official Yubico release tarball instead of GitHub
  tarball (upstream changed packaging between 1.16.0 and 1.17.0)
* split legacy compatibility patches into focused files:
  - patch-compat-pre1012.diff: fix kIOHIDManagerOptionNone on < 10.12
  - patch-nosigpipe.diff: guard F_SETNOSIGPIPE on 10.5–10.6
  - patch-fallthrough.diff: fix FALLTHROUGH attribute on < 10.10
  - patch-bzero.diff: declare bzero hidden by _POSIX_C_SOURCE on < 10.9
  - patch-cmake-no-fallthrough.diff: drop -Wimplicit-fallthrough on 10.5–10.6

Closes: https://trac.macports.org/ticket/64833
Closes: https://trac.macports.org/ticket/68333
2026-04-19 13:55:22 -04:00

19 lines
693 B
Diff

# Despite: https://github.com/emersion/mrsh/issues/78
# Apparently -exported_symbols_list works with Apple ld:
# https://developer.apple.com/library/archive/documentation/Performance/Conceptual/CodeFootprint/Articles/ReducingExports.html
--- CMakeLists.txt.orig 2026-04-18 10:42:30
+++ CMakeLists.txt 2026-04-18 10:42:51
@@ -358,9 +358,8 @@
endif()
# export list
-if(APPLE AND (CMAKE_C_COMPILER_ID STREQUAL "Clang" OR
- CMAKE_C_COMPILER_ID STREQUAL "AppleClang"))
- # clang + lld
+if(APPLE)
+ # clang + lld or gcc + ld64
string(CONCAT CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS}
" -exported_symbols_list ${CMAKE_CURRENT_SOURCE_DIR}/src/export.llvm")
elseif(NOT MSVC)