diff --git a/emulators/mame/Makefile b/emulators/mame/Makefile index 7dbcad9264b5..542ef9c8d1a8 100644 --- a/emulators/mame/Makefile +++ b/emulators/mame/Makefile @@ -89,6 +89,7 @@ post-patch: 's|^BUILD_EXPAT|# BUILD_EXPAT| ; \ s|^BUILD_ZLIB|# BUILD_ZLIB| ; \ /--warn-common/s|= -Wl,|= $$(GCC_LDFLAGS) -Wl,| ; \ + /LDFLAGS/s|-s|| ; \ s| = @gcc| := $$(CC)| ; \ s| = @g++| := $$(CXX)| ; \ s|^FULLNAME =.*|FULLNAME = $$(NAME)|' ${WRKSRC}/makefile diff --git a/emulators/mess/Makefile b/emulators/mess/Makefile index 80e18840a80a..6d8810c66ab0 100644 --- a/emulators/mess/Makefile +++ b/emulators/mess/Makefile @@ -64,6 +64,7 @@ post-patch: 's|^BUILD_EXPAT|# BUILD_EXPAT| ; \ s|^BUILD_ZLIB|# BUILD_ZLIB| ; \ /--warn-common/s|= -Wl,|= $$(GCC_LDFLAGS) -Wl,| ; \ + /LDFLAGS/s|-s|| ; \ s| = @gcc| := $$(CC)| ; \ s| = @g++| := $$(CXX)| ; \ s|^FULLNAME =.*|FULLNAME = $$(NAME)|' ${WRKSRC}/makefile