aboutsummaryrefslogtreecommitdiff
path: root/emulators/mupen64plus-base/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/mupen64plus-base/files/patch-Makefile')
-rw-r--r--emulators/mupen64plus-base/files/patch-Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/emulators/mupen64plus-base/files/patch-Makefile b/emulators/mupen64plus-base/files/patch-Makefile
new file mode 100644
index 000000000000..6becc5b95fe9
--- /dev/null
+++ b/emulators/mupen64plus-base/files/patch-Makefile
@@ -0,0 +1,25 @@
+--- Makefile 2008-03-29 14:41:03.000000000 -0500
++++ Makefile 2008-05-20 10:56:58.000000000 -0500
+@@ -83,7 +83,7 @@
+ r4300/tlb.o
+
+ ifeq ($(CPU), X86)
+- ifeq ($(ARCH), 64BITS)
++ ifeq ($(ARCH_DETECTED), 64BITS)
+ DYNAREC = x86_64
+ else
+ DYNAREC = x86
+@@ -205,11 +205,11 @@
+ all: $(ALL)
+
+ mupen64plus: $(OBJECTS)
+- $(CC) $^ $(LDFLAGS) $(LIBS) -Wl,-export-dynamic -lpthread -ldl -o $@
++ $(CC) $^ $(LDFLAGS) $(LIBS) -Wl,-export-dynamic ${PTHREAD_LIBS} -o $@
+ $(STRIP) $@
+
+ mupen64plus_dbg: $(OBJECTS) main/main_gtk.o
+- $(CC) $^ $(LDFLAGS) $(LIBS) -Wl,-export-dynamic -lpthread -ldl -o $@
++ $(CC) $^ $(LDFLAGS) $(LIBS) -Wl,-export-dynamic ${PTHREAD_LIBS} -o $@
+
+ install:
+ ./install.sh $(PREFIX)