aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/p7zip/files/do_not_override_compiler_and_do_not_strip.patch
blob: a3b02c5dc0229f7c2aa0ba32e12992f0fa567dc5 (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
do not override compiler and do not strip

The default makefile sets the compiler to g++ or gcc. This leads to a wrong architecture when cross-compiling.
Remove the hardcoded compiler and just append the flags to CXX and CC.

Upstream-Status: Pending
Signed-off-by: Raphael Freudiger <raphael.freudiger@siemens.com>
Reviewed-By: Pascal Bach <pascal.bach@siemens.com>

Index: p7zip_9.20.1/makefile.machine
=====================================================================
--- p7zip_9.20.1/makefile.machine	2011-03-13 12:54:57.000000000 +0100
+++ p7zip_9.20.1/makefile.machine	2015-02-03 08:39:44.427696944 +0100
@@ -4,14 +4,14 @@
 
 OPTFLAGS=-O
 
-ALLFLAGS=${OPTFLAGS} -pipe -s \
+ALLFLAGS=${OPTFLAGS} -pipe \
     	-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
 	-DNDEBUG -D_REENTRANT -DENV_UNIX \
 	-D_7ZIP_LARGE_PAGES \
 	$(LOCAL_FLAGS)
 
-CXX=g++ $(ALLFLAGS)
-CC=gcc $(ALLFLAGS)
+CXX+=$(ALLFLAGS)
+CC+=$(ALLFLAGS)
 CC_SHARED=-fPIC
 LINK_SHARED=-fPIC -shared