aboutsummaryrefslogtreecommitdiffstats
path: root/main/p7zip/p7zip-cc-cxx.patch
blob: 29742cf6f4eda98d08085bc53896d887d4c2887f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/makefile.machine.orig
+++ b/makefile.machine
@@ -2,6 +2,8 @@
 # makefile for Linux (x86, PPC, alpha ...)
 #
 
+CXX ?= g++
+CC ?= gcc
 OPTFLAGS=-O
 
 ALLFLAGS=${OPTFLAGS} -pipe -s \
@@ -10,8 +12,8 @@
	-D_7ZIP_LARGE_PAGES \
 	$(LOCAL_FLAGS)
 
-CXX=g++
-CC=gcc
+CXX += $(ALLFLAGS)
+CC += $(ALLFLAGS)
 CC_SHARED=-fPIC
 LINK_SHARED=-fPIC -shared