From 7a51904aaaa44df123e7ddbad9b475eebd504344 Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Thu, 17 Nov 2005 13:22:30 +0000 Subject: [PATCH] An attempt to fix build on 4.x. Reported by: pointyhat via kris --- emulators/pearpc/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/emulators/pearpc/Makefile b/emulators/pearpc/Makefile index 13886a8619fe..a661c8328d82 100644 --- a/emulators/pearpc/Makefile +++ b/emulators/pearpc/Makefile @@ -28,8 +28,7 @@ PLIST_DIRS= %%DATADIR%% .if defined(WITH_OPTIMIZED_CFLAGS) CFLAGS+= -O3 -ffast-math .else -CONFIGURE_ARGS+= --disable-fpo \ - --disable-release +CONFIGURE_ARGS+= --disable-fpo .endif # GTK and QT ui are broken in this version @@ -86,6 +85,9 @@ pre-everything:: @${ECHO_MSG} "" .endif +post-extract: + @${REINPLACE_CMD} -e 's|-g -O2||;s|-O2||' ${WRKSRC}/configure + post-configure: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/src/Makefile