aboutsummaryrefslogtreecommitdiff
path: root/meta-aarch64/recipes-extra/tbb/tbb/cross-compile.patch
blob: b970a374e57a9520e25552a54b48b431770f3c8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Author: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>

Upstream-Status: unsuitable
---
 build/linux.gcc.inc |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- tbb41_20121003oss.orig/build/linux.gcc.inc
+++ tbb41_20121003oss/build/linux.gcc.inc
@@ -40,12 +40,13 @@ DYLIB_KEY = -shared
 EXPORT_KEY = -Wl,--version-script,
 LIBDL = -ldl
 
 TBB_NOSTRICT = 1
 
-CPLUS = g++
-CONLY = gcc
+CPLUS = $(CXX)
+CONLY = $(CC)
+CPLUS_FLAGS = $(CXXFLAGS)
 LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
 LIBS += -lpthread -lrt
 LINK_FLAGS = -Wl,-rpath-link=.
 C_FLAGS = $(CPLUS_FLAGS)
 # gcc 4.4 and higher support -std=c++0x