summaryrefslogtreecommitdiff
path: root/games-puzzle/blockout/files/blockout-2.5-image-makefile.patch
blob: d910fd4b4103fc1e74164558a1f6e595eb15141b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/ImageLib/src/Makefile
+++ b/ImageLib/src/Makefile
@@ -32,11 +32,14 @@
 
 #---------------------------------------------------------------------
 
+UCXXFLAGS := $(shell emerge --info | grep -w CXXFLAGS=".*" | cut -d '"' -f2)
+UCFLAGS := $(shell emerge --info | grep -w CFLAGS=".*" | cut -d '"' -f2)
+
 CXX	= g++
 CC	= gcc
 
-CXXFLAGS    = -O2 -Dlinux -c -I.
-CFLAGS      = -O2 -Dlinux -c -I.
+CXXFLAGS    := $(UCXXFLAGS) -Dlinux -c -I.
+CFLAGS      := $(UCFLAGS) -Dlinux -c -I.
 
 
 #--------------------------------------------------------------------