mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:47:45 +00:00
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
This commit is contained in:
parent
ea0a002468
commit
5810467c97
3 changed files with 18 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue