summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-11-19 15:06:03 +0100
committerDavid Seifert <soap@gentoo.org>2017-11-19 15:07:24 +0100
commit2c4c719528dd2364a8c33fe5f05b6847ea0711fe (patch)
tree50fbc6b3a4d19776d629738af8bf1d09ab207983 /games-action/atanks/files
parentsys-devel/gcc: stable for amd64, bug 638030 (diff)
downloadgentoo-2c4c719528dd2364a8c33fe5f05b6847ea0711fe.tar.gz
gentoo-2c4c719528dd2364a8c33fe5f05b6847ea0711fe.tar.bz2
gentoo-2c4c719528dd2364a8c33fe5f05b6847ea0711fe.zip
games-action/atanks: Respect user variables
Package-Manager: Portage-2.3.14, Repoman-2.3.6
Diffstat (limited to 'games-action/atanks/files')
-rw-r--r--games-action/atanks/files/atanks-6.4-fix-build-system.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/games-action/atanks/files/atanks-6.4-fix-build-system.patch b/games-action/atanks/files/atanks-6.4-fix-build-system.patch
new file mode 100644
index 000000000000..e13ebb1d1421
--- /dev/null
+++ b/games-action/atanks/files/atanks-6.4-fix-build-system.patch
@@ -0,0 +1,28 @@
+* Don't try to find where $(CXX) is, just use it
+* Don't muck with CXXFLAGS
+
+--- a/Makefile
++++ b/Makefile
+@@ -85,13 +85,9 @@
+ # ------------------------------------
+ INSTALL := $(shell which install)
+ RM := $(shell which rm) -f
+-CXX ?= g++
+ SED := $(shell which sed)
+ WINDRES :=
+
+-ifeq (,$(findstring /,$(CXX)))
+- CXX := $(shell which $(CXX))
+-endif
+
+
+ # if this is a Windows target, prefer mingw32-g++ over g++
+@@ -231,8 +227,6 @@
+ CPPFLAGS := ${CPPFLAGS} -DATANKS_DEBUG_LOGTOFILE
+ endif
+
+-else
+- CXXFLAGS := -march=native ${CXXFLAGS} -O2
+ endif
+
+