summaryrefslogtreecommitdiff
path: root/Meta/Lagom/CMakeLists.txt
diff options
context:
space:
mode:
authortuftedocelot <tuftedocelot@fastmail.fm>2021-12-22 18:32:00 -0600
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-29 03:46:56 -0800
commit5810467c97b62a063545be47508072057dbbcb09 (patch)
tree0530f06ee75a42183dc64e07aeab561a84a2c25c /Meta/Lagom/CMakeLists.txt
parentea0a00246815c9fe957c6564a28e0960a5d04433 (diff)
downloadserenity-5810467c97b62a063545be47508072057dbbcb09.zip
Build: Remove gzip -k usage in PCI/USB ID files and crypt for OpenBSD
OpenBSD gzip does not have the -k flag to keep the original after extraction. Work around this by copying the original gzip to the dest and then extracting. A bit of a hack, but only needs to be done for the first-time or rebuilds OpenBSD provides crypt in libc, not libcrypt. Adjust if/else to check for either and proceed accordingly Remove outdated OpenBSD checks when building the toolchain
Diffstat (limited to 'Meta/Lagom/CMakeLists.txt')
-rw-r--r--Meta/Lagom/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt
index 85a98c717d..3f2544f9ae 100644
--- a/Meta/Lagom/CMakeLists.txt
+++ b/Meta/Lagom/CMakeLists.txt
@@ -224,8 +224,10 @@ lagom_lib(Core core
SOURCES ${AK_SOURCES} ${LIBCORE_SOURCES}
LIBS Threads::Threads
)
-if (NOT APPLE)
- target_link_libraries(LagomCore crypt) # Core::Account uses crypt() but it's not in libcrypt on macOS
+if (APPLE OR ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+ target_link_libraries(LagomCore) # Core::Account uses crypt() but it's not in libcrypt on macOS
+else()
+ target_link_libraries(LagomCore crypt)
endif()
# Main