[Buildroot] [PATCH v2 2/3] iprutils: Don't include host headers

Romain Naour romain.naour at openwide.fr
Fri Dec 12 23:30:33 UTC 2014


Use ncurses5-config to find ncurses headers.

Fixes:
ERROR: unsafe header/library path used in cross-compilation: '/usr/include/ncurses'

Signed-off-by: Romain Naour <romain.naour at openwide.fr>
---
v2: use ncurses5-config to find ncurses headers
    instead of overwriting INCLUDEDIR

 ...n-t-include-host-headers-when-cross-compi.patch | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 package/iprutils/0004-Don-t-include-host-headers-when-cross-compi.patch

diff --git a/package/iprutils/0004-Don-t-include-host-headers-when-cross-compi.patch b/package/iprutils/0004-Don-t-include-host-headers-when-cross-compi.patch
new file mode 100644
index 0000000..bca5ec0
--- /dev/null
+++ b/package/iprutils/0004-Don-t-include-host-headers-when-cross-compi.patch
@@ -0,0 +1,26 @@
+From 0c42685f45b9f01944a64e36cc6aee8192b622c2 Mon Sep 17 00:00:00 2001
+From: Romain Naour <romain.naour at openwide.fr>
+Date: Sat, 13 Dec 2014 00:14:19 +0100
+Subject: [PATCH 1/1] iprutils: Don't include host headers when cross-compiling
+
+Signed-off-by: Romain Naour <romain.naour at openwide.fr>
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 18cea94..a4e702a 100644
+--- a/Makefile
++++ b/Makefile
+@@ -4,7 +4,7 @@
+ # materials are made available under the terms of the
+ # Common Public License v1.0 which accompanies this distribution.
+ 
+-INCLUDEDIR = -I. -I/usr/include/ncurses
++INCLUDEDIR = -I. `ncurses5-config --cflags`
+ CC = gcc
+ 
+ include version.mk
+-- 
+1.9.3
+
-- 
1.9.3




More information about the buildroot mailing list