mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-26 03:02:27 -05:00
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Luke Wilde <lukew@serenityos.org>
|
|
Date: Mon, 27 Feb 2023 20:42:52 +0000
|
|
Subject: [PATCH] Make mednafen compile with PIC/PIE
|
|
|
|
We currently don't support copy relocations and mednafen compiles with
|
|
PIC/PIE disabled for performance reasons. This re-enables it and
|
|
disables the compiler warning it emits for having it enabled.
|
|
---
|
|
configure | 2 ++
|
|
src/types.h | 2 ++
|
|
2 files changed, 4 insertions(+)
|
|
|
|
diff --git a/configure b/configure
|
|
index 01b3122038f5223f3c2fbdefc823b2aeb240515d..2d45a1a179374a9441eaef9f08c841983b70a681 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -19954,6 +19954,8 @@ cat >>confdefs.h <<_ACEOF
|
|
#define MEDNAFEN_VERSION_NUMERIC $MEDNAFEN_VERSION_NUMERIC
|
|
_ACEOF
|
|
|
|
+NOPICPIE_FLAGS=""
|
|
+NOPICPIE_LDFLAGS=""
|
|
|
|
AM_CFLAGS="$ALTIVEC_FLAGS $OPTIMIZER_FLAGS $WARNING_FLAGS $CODEGEN_FLAGS $CODEGEN_CFLAGS $NOPICPIE_FLAGS"
|
|
|
|
diff --git a/src/types.h b/src/types.h
|
|
index 86aedf67812c1270d2b55692fb674fa70f66dbc6..41296bbcd01e82bb93b0a66a00349efd8b4fd603 100644
|
|
--- a/src/types.h
|
|
+++ b/src/types.h
|
|
@@ -14,6 +14,8 @@
|
|
#include <config.h>
|
|
#endif
|
|
|
|
+#define MDFN_DISABLE_PICPIE_ERRWARN 1
|
|
+
|
|
//
|
|
//
|
|
//
|