• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libiscsi/0001-Do-not-use-I-usr-include.-This-is-unsafe-when-cross-compiling.patch
Vicente Olivert RieraVicente Olivert Riera committed 2206a0c0a7316 Oct 2016
Raw file
Source viewDiff to previous
 
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.
5
​
6
Upstream status: PR sent (https://github.com/sahlberg/libiscsi/pull/219)
7
​
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(-)
15
​
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
26
 
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)))"
35
 
36
-AM_CFLAGS=$(WARN_CFLAGS) -I/usr/include
37
+AM_CFLAGS=$(WARN_CFLAGS)
38
 
39
 dist_noinst_DATA = libiscsi.syms libiscsi.def
40
 
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
51
 
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
63
 
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.