diff options
Diffstat (limited to 'net/nDPId-master/patches/001-enable-in-source-build.patch')
-rw-r--r-- | net/nDPId-master/patches/001-enable-in-source-build.patch | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/net/nDPId-master/patches/001-enable-in-source-build.patch b/net/nDPId-master/patches/001-enable-in-source-build.patch index 86432dc..d710fe5 100644 --- a/net/nDPId-master/patches/001-enable-in-source-build.patch +++ b/net/nDPId-master/patches/001-enable-in-source-build.patch @@ -1,10 +1,21 @@ +From f1fca0f22009a94f8021f43363de560a666801ae Mon Sep 17 00:00:00 2001 +From: Toni Uhlig <matzeton@googlemail.com> +Date: Sun, 5 Nov 2023 22:02:19 +0100 +Subject: [PATCH] Allow in-source builds required for OpenWrt toolchain. + +Signed-off-by: Toni Uhlig <matzeton@googlemail.com> +--- + CMakeLists.txt | 7 ------- + 1 file changed, 7 deletions(-) + diff --git a/CMakeLists.txt b/CMakeLists.txt -index 9045237..83f72b3 100644 +index 21020d5e..9664652e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -1,12 +1,5 @@ - cmake_minimum_required(VERSION 3.12.4) - project(nDPId C) +@@ -10,13 +10,6 @@ if(CMAKE_COMPILER_IS_GNUCXX) + endif(CMAKE_COMPILER_IS_GNUCXX) + set(CMAKE_C_STANDARD 11) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -D_DEFAULT_SOURCE=1 -D_GNU_SOURCE=1") -if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}") - message(FATAL_ERROR "In-source builds are not allowed.\n" - "Please remove ${PROJECT_SOURCE_DIR}/CMakeCache.txt\n" @@ -15,3 +26,6 @@ index 9045237..83f72b3 100644 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) find_package(PkgConfig REQUIRED) +-- +2.39.2 + |