mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 00:10:52 +00:00
29 lines
855 B
Diff
29 lines
855 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -76,24 +76,7 @@
|
|
endif()
|
|
|
|
if (NOT DEFINED LIB_INSTALL_DIR)
|
|
- set(LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
|
-endif()
|
|
-
|
|
-# libbpf uses reallocarray, which is not available in all versions of glibc
|
|
-# libbpf's include/tools/libc_compat.h provides implementation, but needs
|
|
-# COMPACT_NEED_REALLOCARRAY to be set
|
|
-INCLUDE(CheckCSourceCompiles)
|
|
-CHECK_C_SOURCE_COMPILES(
|
|
-"
|
|
-#define _GNU_SOURCE
|
|
-#include <stdlib.h>
|
|
-int main(void)
|
|
-{
|
|
- return !!reallocarray(NULL, 1, 1);
|
|
-}
|
|
-" HAVE_REALLOCARRAY_SUPPORT)
|
|
-if (NOT HAVE_REALLOCARRAY_SUPPORT)
|
|
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCOMPAT_NEED_REALLOCARRAY")
|
|
+ set(LIB_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}")
|
|
endif()
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64")
|