python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / libiscsi / 0001-Do-not-use-I-usr-include.-This-is-unsafe-when-cross-compiling.patch
blobdc047ef49c292b08dc3ebc6142d33318c92df9b6
1 From f27bdf64f0c375352ca42928071a9178a5a04c46 Mon Sep 17 00:00:00 2001
2 From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
3 Date: Sun, 16 Oct 2016 10:53:13 +0100
4 Subject: [PATCH] Do not use -I/usr/include. This is unsafe when cross-compiling.
6 Upstream status: PR sent (https://github.com/sahlberg/libiscsi/pull/219)
8 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
9 ---
10 examples/Makefile.am | 2 +-
11 lib/Makefile.am | 2 +-
12 tests/Makefile.am | 2 +-
13 utils/Makefile.am | 2 +-
14 4 files changed, 4 insertions(+), 4 deletions(-)
16 diff --git a/examples/Makefile.am b/examples/Makefile.am
17 index 0de0b1f..42ad818 100644
18 --- a/examples/Makefile.am
19 +++ b/examples/Makefile.am
20 @@ -1,6 +1,6 @@
21 AM_CPPFLAGS=-I. -I${srcdir}/../include "-D_U_=__attribute__((unused))" \
22 "-D_R_(A,B)=__attribute__((format(printf,A,B)))"
23 -AM_CFLAGS=$(WARN_CFLAGS) -I/usr/include
24 +AM_CFLAGS=$(WARN_CFLAGS)
25 LDADD = ../lib/libiscsi.la
27 noinst_PROGRAMS = iscsiclient iscsi-dd
28 diff --git a/lib/Makefile.am b/lib/Makefile.am
29 index d612fb7..47ffc33 100644
30 --- a/lib/Makefile.am
31 +++ b/lib/Makefile.am
32 @@ -29,7 +29,7 @@ libiscsi_la_CPPFLAGS = -I${srcdir}/../include -I$(srcdir)/include \
33 "-D_U_=__attribute__((unused))" \
34 "-D_R_(A,B)=__attribute__((format(printf,A,B)))"
36 -AM_CFLAGS=$(WARN_CFLAGS) -I/usr/include
37 +AM_CFLAGS=$(WARN_CFLAGS)
39 dist_noinst_DATA = libiscsi.syms libiscsi.def
41 diff --git a/tests/Makefile.am b/tests/Makefile.am
42 index 9d699fc..b4cbf21 100644
43 --- a/tests/Makefile.am
44 +++ b/tests/Makefile.am
45 @@ -1,6 +1,6 @@
46 AM_CPPFLAGS = -I../include "-D_U_=__attribute__((unused))" \
47 "-D_R_(A,B)=__attribute__((format(printf,A,B)))"
48 -AM_CFLAGS = $(WARN_CFLAGS) -I/usr/include
49 +AM_CFLAGS = $(WARN_CFLAGS)
50 LDADD = ../lib/libiscsi.la
52 noinst_PROGRAMS = prog_reconnect prog_reconnect_timeout prog_noop_reply \
53 diff --git a/utils/Makefile.am b/utils/Makefile.am
54 index 657ca9d..bde1c81 100644
55 --- a/utils/Makefile.am
56 +++ b/utils/Makefile.am
57 @@ -1,6 +1,6 @@
58 AM_CPPFLAGS = -I${srcdir}/../include "-D_U_=__attribute__((unused))" \
59 "-D_R_(A,B)=__attribute__((format(printf,A,B)))"
60 -AM_CFLAGS = $(WARN_CFLAGS) -I/usr/include
61 +AM_CFLAGS = $(WARN_CFLAGS)
62 LDADD = ../lib/libiscsi.la
64 bin_PROGRAMS = iscsi-inq iscsi-ls iscsi-perf iscsi-readcapacity16 \
65 --
66 2.10.0