aboutsummaryrefslogtreecommitdiff
path: root/fheroes2/patches/0001-crosscompile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'fheroes2/patches/0001-crosscompile.patch')
-rw-r--r--fheroes2/patches/0001-crosscompile.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/fheroes2/patches/0001-crosscompile.patch b/fheroes2/patches/0001-crosscompile.patch
new file mode 100644
index 0000000..364d1e8
--- /dev/null
+++ b/fheroes2/patches/0001-crosscompile.patch
@@ -0,0 +1,19 @@
+--- a/src/Makefile 2015-09-22 03:47:13.777305599 +0200
++++ b/src/Makefile 2015-09-22 03:48:24.565303557 +0200
+@@ -12,7 +12,7 @@
+ SDL_FLAGS := $(shell sdl-config --cflags)
+ endif
+
+-CFLAGS := $(CFLAGS) -Wall -fsigned-char
++CFLAGS := $(CFLAGS) $(CPPFLAGS) -Wall -fsigned-char
+ LDFLAGS := $(LDFLAGS)
+ LIBS :=
+
+--- a/src/Makefile.all 2015-09-22 03:49:00.833302511 +0200
++++ b/src/Makefile.all 2015-09-22 03:49:12.929302162 +0200
+@@ -1,4 +1,4 @@
+-AR := ar
++AR ?= ar
+
+ ifndef CXX
+ CXX := g++