summaryrefslogtreecommitdiff
path: root/net/https-dns-proxy
diff options
context:
space:
mode:
authorEtienne Champetier <champetier.etienne@gmail.com>2021-08-20 15:33:27 -0400
committerEtienne Champetier <champetier.etienne@gmail.com>2021-08-20 15:45:44 -0400
commit374e1dd56e1742273b261f25a69fd3d46741e357 (patch)
tree0313d3a2439c7a3b4f5463193e674cb4e1957cfd /net/https-dns-proxy
parent6981009f4847b1f46ef69ae813f7154b7946e47e (diff)
https-dns-proxy: patch CMakeList.txt to use OpenWrt CFLAGS
This fixes compilation issues with ASLR PIE enabled We were compiling with '-g -DDEBUG' https-dns-proxy_2021-07-29-*_arm_cortex-a9_vfpv3-d16.ipk shrink from 19514 to 19095 Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
Diffstat (limited to 'net/https-dns-proxy')
-rw-r--r--net/https-dns-proxy/Makefile2
-rw-r--r--net/https-dns-proxy/patches/010-fix-cmakelists.patch19
2 files changed, 20 insertions, 1 deletions
diff --git a/net/https-dns-proxy/Makefile b/net/https-dns-proxy/Makefile
index aa7e2f31c..c43509d5a 100644
--- a/net/https-dns-proxy/Makefile
+++ b/net/https-dns-proxy/Makefile
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=https-dns-proxy
PKG_VERSION:=2021-07-29
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
diff --git a/net/https-dns-proxy/patches/010-fix-cmakelists.patch b/net/https-dns-proxy/patches/010-fix-cmakelists.patch
new file mode 100644
index 000000000..f6e3e087a
--- /dev/null
+++ b/net/https-dns-proxy/patches/010-fix-cmakelists.patch
@@ -0,0 +1,19 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -12,12 +12,12 @@ function(define_file_basename_for_source
+ endforeach()
+ endfunction()
+
+-set(CMAKE_BUILD_TYPE "Debug")
++#set(CMAKE_BUILD_TYPE "Debug")
+ #set(CMAKE_BUILD_TYPE "Release")
+
+-set(CMAKE_C_FLAGS "-Wall -Wextra --pedantic -Wno-strict-aliasing -Wno-variadic-macros")
+-set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG")
+-set(CMAKE_C_FLAGS_RELEASE "-O2")
++#set(CMAKE_C_FLAGS "-Wall -Wextra --pedantic -Wno-strict-aliasing -Wno-variadic-macros")
++#set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG")
++#set(CMAKE_C_FLAGS_RELEASE "-O2")
+
+ if ((CMAKE_C_COMPILER_ID MATCHES GNU AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 9) OR
+ (CMAKE_C_COMPILER_ID MATCHES Clang AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 10))