An attempt to fix build on 4.x.

Reported by:	pointyhat via kris
This commit is contained in:
Roman Bogorodskiy 2005-11-17 13:22:30 +00:00
parent a3d2c157e9
commit 7a51904aaa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148607

View File

@ -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