mirror of
https://github.com/openwrt/telephony.git
synced 2026-04-15 10:51:57 +00:00
It was discovered that spandsp3 leaks host header on building build tools. This was caused by the Makefile not permitting to pass custom header on compiling build tools. To be more precise it was possible to leak host header for the tiff library for the tiffio.h header. Add pending patch to fix this and not depend on the host system header. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
28 lines
912 B
Diff
28 lines
912 B
Diff
From b9aa8b79270bb5241508b2c3864c8069f73e75e5 Mon Sep 17 00:00:00 2001
|
|
From: Christian Marangi <ansuelsmth@gmail.com>
|
|
Date: Thu, 20 Nov 2025 16:39:06 +0100
|
|
Subject: [PATCH 1/2] Permit to provide custom CPPFLAGS_FOR_BUILD
|
|
|
|
In the context of cross compilation the CPPFLAGS for the target might be
|
|
different than the one for build tools.
|
|
|
|
Permit to provide custom CPPFLAGS_FOR_BUILD value to handle this
|
|
scenario.
|
|
|
|
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
|
---
|
|
configure.ac | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -61,7 +61,7 @@ then
|
|
# are not the same, we set reasonable default values for the tools.
|
|
|
|
CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
|
|
- CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)"
|
|
+ CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"\$(CPPFLAGS)"}
|
|
CC=${CC-${host_alias}-gcc}
|
|
CFLAGS=${CFLAGS-"-g -O2"}
|
|
CXX=${CXX-${host_alias}-c++}
|