diff --git a/devel/kdevelop/Makefile b/devel/kdevelop/Makefile index 048c757b5bd1..abc88130163a 100644 --- a/devel/kdevelop/Makefile +++ b/devel/kdevelop/Makefile @@ -54,4 +54,10 @@ pre-everything:: post-patch: ${TOUCH} -t 200401230000 ${WRKSRC}/Makefile.am.in +.if ${ARCH} == "amd64" +post-configure: + ${REINPLACE_CMD} -e "s,-O2,${CFLAGS} -fPIC," \ + ${WRKSRC}/bdb/build_unix/Makefile ${WRKSRC}/bdb/Makefile +.endif + .include