mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-14 03:39:53 +03:00
12 lines
508 B
Diff
12 lines
508 B
Diff
From https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/35711#note_243863
|
|
_GNU_SOURCE is needed for cpu_set_t, and affinity disable is needed to work around lack of pthread_attr_setaffinity_np
|
|
--- a/libraries/lzma/CMakeLists.txt
|
|
+++ b/libraries/lzma/CMakeLists.txt
|
|
@@ -1,6 +1,6 @@
|
|
make_release_only()
|
|
|
|
-set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_7ZIP_PPMD_SUPPPORT" )
|
|
+set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE -D_7ZIP_PPMD_SUPPPORT -D _7ZIP_AFFINITY_DISABLE" )
|
|
|
|
find_package(Threads)
|
|
|