From 4ea696dae9762cd7852444035f3c8c85ef3036e4 Mon Sep 17 00:00:00 2001 From: sydarn Date: Sat, 3 Feb 2024 12:39:52 +0100 Subject: [PATCH] mednafen: link-time and interpocedural pointer optimizations --- packages/emulators/standalone/mednafen/package.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/emulators/standalone/mednafen/package.mk b/packages/emulators/standalone/mednafen/package.mk index bba8e9ac6..02aa19da6 100644 --- a/packages/emulators/standalone/mednafen/package.mk +++ b/packages/emulators/standalone/mednafen/package.mk @@ -15,6 +15,10 @@ fi pre_configure_target() { +export CFLAGS="${CFLAGS} -flto -fipa-pta" +export CXXFLAGS="${CXXFLAGS} -flto -fipa-pta" +export LDFLAGS="${LDFLAGS} -flto -fipa-pta" + # unsupported modules DISABLED_MODULES+=" --disable-apple2 \ --disable-sasplay \