diff --git a/output/dll/libquicknes.dll b/output/dll/libquicknes.dll index 939b0cb7f0..a961862827 100644 Binary files a/output/dll/libquicknes.dll and b/output/dll/libquicknes.dll differ diff --git a/quicknes/bizinterface.cpp b/quicknes/bizinterface.cpp index cafb3969c1..74e9ab3ac1 100644 --- a/quicknes/bizinterface.cpp +++ b/quicknes/bizinterface.cpp @@ -31,7 +31,7 @@ void operator delete(void *p) std::free(p); } -#define EXPORT extern "C" __declspec(dllexport) +#define EXPORT extern "C" __declspec(dllexport) __attribute__((force_align_arg_pointer)) EXPORT void qn_setup_mappers() { diff --git a/quicknes/mingw/Makefile b/quicknes/mingw/Makefile index 8a28ffb88d..6761074f8a 100644 --- a/quicknes/mingw/Makefile +++ b/quicknes/mingw/Makefile @@ -1,7 +1,10 @@ CXX = g++ -CXXFLAGS = -Wall -DDISABLE_AUTO_FILE -D__LIBRETRO__ -DNDEBUG -I.. -O3 -Wno-multichar -fno-exceptions -fomit-frame-pointer +CXXFLAGS = -Wall -DDISABLE_AUTO_FILE -D__LIBRETRO__ -DNDEBUG -I.. -O3 -Wno-multichar -fno-exceptions -fomit-frame-pointer -march=pentium4 -mtune=core2 -flto +# TODO: include these as options in the Makefile +# -fprofile-generate +# -fprofile-use TARGET = libquicknes.dll -LDFLAGS = -shared -static-libgcc -static-libstdc++ $(CXXFLAGS) +LDFLAGS = -shared -static -static-libgcc -static-libstdc++ $(CXXFLAGS) RM = rm CP = cp