summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-oe/recipes-support/tbb/tbb/cross-compile.patch
blob: d54b307ee9d7948f9c2374d6482b4815f6a2bfa9 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Author: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>

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

Index: tbb2017_20170118oss/build/linux.gcc.inc
===================================================================
--- tbb2017_20170118oss.orig/build/linux.gcc.inc
+++ tbb2017_20170118oss/build/linux.gcc.inc
@@ -32,8 +32,9 @@ DYLIB_KEY = -shared
 EXPORT_KEY = -Wl,--version-script,
 LIBDL = -ldl
 
-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=. -rdynamic
Index: tbb2017_20170118oss/build/linux.clang.inc
===================================================================
--- tbb2017_20170118oss.orig/build/linux.clang.inc
+++ tbb2017_20170118oss/build/linux.clang.inc
@@ -31,8 +31,9 @@ DYLIB_KEY = -shared
 EXPORT_KEY = -Wl,--version-script,
 LIBDL = -ldl
 
-CPLUS = clang++
-CONLY = clang
+CPLUS = $(CXX)
+CONLY = $(CC)
+CPLUS_FLAGS = $(CXXFLAGS)
 LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
 LIBS += -lpthread -lrt
 LINK_FLAGS = -Wl,-rpath-link=. -rdynamic