summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/liburcu/files/fixCCflag.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/liburcu/files/fixCCflag.patch')
-rw-r--r--meta/recipes-support/liburcu/files/fixCCflag.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-support/liburcu/files/fixCCflag.patch b/meta/recipes-support/liburcu/files/fixCCflag.patch
new file mode 100644
index 0000000000..2e526d4517
--- /dev/null
+++ b/meta/recipes-support/liburcu/files/fixCCflag.patch
@@ -0,0 +1,20 @@
+Upstream-Status: Pending
+
+Use cross compiler for doc exemples too
+
+Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
+
+Index: userspace-rcu-0.8.0/doc/examples/Makefile.examples.template
+===================================================================
+--- userspace-rcu-0.8.0.orig/doc/examples/Makefile.examples.template 2013-08-30 21:25:20.000000000 +0300
++++ userspace-rcu-0.8.0/doc/examples/Makefile.examples.template 2013-10-23 13:34:30.405550556 +0300
+@@ -11,7 +11,9 @@
+ #
+ # This makefile is purposefully kept simple to support GNU and BSD make.
+
++ifndef CC
+ CC = gcc
++endif
+ CFLAGS = -g -O2 -Wall
+
+ all: $(BINARY)