aboutsummaryrefslogtreecommitdiff
path: root/patches/mame2000
diff options
context:
space:
mode:
authorneonloop2021-08-15 16:45:52 +0000
committerneonloop2021-08-15 16:45:52 +0000
commit549c48b2b327762e87e327a1ba0221810dcac5ab (patch)
tree31f6c4d2ef03b31c123501ef09fa6d920df714ed /patches/mame2000
parent43929bba35f0929a90a4128c4bfd50c226e1e842 (diff)
downloadpicoarch-549c48b2b327762e87e327a1ba0221810dcac5ab.tar.gz
picoarch-549c48b2b327762e87e327a1ba0221810dcac5ab.tar.bz2
picoarch-549c48b2b327762e87e327a1ba0221810dcac5ab.zip
Fixes profile generation for mame2000 / snes9x2005
Diffstat (limited to 'patches/mame2000')
-rw-r--r--patches/mame2000/1000-trimui-build.patch15
1 files changed, 9 insertions, 6 deletions
diff --git a/patches/mame2000/1000-trimui-build.patch b/patches/mame2000/1000-trimui-build.patch
index 52492b8..b02c1cc 100644
--- a/patches/mame2000/1000-trimui-build.patch
+++ b/patches/mame2000/1000-trimui-build.patch
@@ -1,5 +1,5 @@
diff --git a/Makefile b/Makefile
-index 4b0667a..8ebaebe 100644
+index 4b0667a..34df34e 100644
--- a/Makefile
+++ b/Makefile
@@ -335,6 +335,26 @@ else ifeq ($(platform), gcw0)
@@ -29,7 +29,7 @@ index 4b0667a..8ebaebe 100644
# Windows MSVC 2010 x64
else ifeq ($(platform), windows_msvc2010_x64)
CC = cl.exe
-@@ -522,10 +542,19 @@ endif
+@@ -522,6 +542,8 @@ endif
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
@@ -38,14 +38,17 @@ index 4b0667a..8ebaebe 100644
else
CFLAGS += -O2 -DNDEBUG
endif
+@@ -531,6 +553,13 @@ RM = rm -f
+ LIBS = -lm
+ OBJ = obj
+ifeq ($(PROFILE), GENERATE)
+ CFLAGS += -fprofile-generate=./profile/mame2000
-+ LDFLAGS += -lgcov
++ LIBS += -lgcov
+else ifeq ($(PROFILE), APPLY)
+ CFLAGS += -fprofile-use -fprofile-dir=../profile/mame2000 -fbranch-probabilities
+endif
+
- # compiler, linker and utilities
- RM = rm -f
- LIBS = -lm
+ ifeq ($(HAVE_RZLIB),)
+ ZLIB_INCLUDE := -Isrc/zlib
+ endif