summaryrefslogtreecommitdiff
path: root/emulators/libretro-picodrive/patches
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2018-08-08 23:47:49 +0000
committernia <nia@pkgsrc.org>2018-08-08 23:47:49 +0000
commit6a785384cbb1fbea6b9825b02c1760f06518527f (patch)
tree4f2f894a76090f6e602a2d6c60f455484ae27c7e /emulators/libretro-picodrive/patches
parent98f913ccfa92e0a1979e17432fd0a036a72b1090 (diff)
downloadpkgsrc-6a785384cbb1fbea6b9825b02c1760f06518527f.tar.gz
emulators/libretro-picodrive: add a patch to stop the makefile overriding CC.
Diffstat (limited to 'emulators/libretro-picodrive/patches')
-rw-r--r--emulators/libretro-picodrive/patches/patch-Makefile.libretro16
1 files changed, 14 insertions, 2 deletions
diff --git a/emulators/libretro-picodrive/patches/patch-Makefile.libretro b/emulators/libretro-picodrive/patches/patch-Makefile.libretro
index 0315c78e7ac..6b70d2ea228 100644
--- a/emulators/libretro-picodrive/patches/patch-Makefile.libretro
+++ b/emulators/libretro-picodrive/patches/patch-Makefile.libretro
@@ -1,11 +1,23 @@
-$NetBSD: patch-Makefile.libretro,v 1.1 2018/08/08 22:14:20 nia Exp $
+$NetBSD: patch-Makefile.libretro,v 1.2 2018/08/08 23:47:49 nia Exp $
+
+Don't redefine CC.
Picodrive is written in C. Let's link with a C compiler instead of
a C++ compiler.
--- Makefile.libretro.orig 2018-07-22 20:01:05.000000000 +0000
+++ Makefile.libretro
-@@ -656,7 +656,7 @@ else
+@@ -68,9 +68,6 @@ ifeq ($(platform), unix)
+ DONT_COMPILE_IN_ZLIB = 1
+ CFLAGS += -DFAMEC_NO_GOTOS
+ use_sh2drc = 1
+-ifneq ($(findstring SunOS,$(shell uname -a)),)
+- CC=gcc
+-endif
+
+ # Portable Linux
+ else ifeq ($(platform), linux-portable)
+@@ -656,7 +653,7 @@ else
LD = link.exe
endif
else