Fix build on amd64 by adding --with-pic to CONFIGURE_ARGS.

Submitted by:	Sean McNeil <sean@mcneil.com>
This commit is contained in:
Joe Marcus Clarke 2004-06-04 04:23:41 +00:00
parent 067f35f6d8
commit 7847d8fbde
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=110803

View file

@ -64,6 +64,10 @@ CONFIGURE_ARGS+=--with-openldap=${LOCALBASE}
CONFIGURE_ARGS+=--with-openldap=no
.endif
.if ${ARCH} == "amd64"
CONFIGURE_ARGS+=--with-pic
.endif
post-patch:
@${FIND} ${WRKSRC} -type f -name "*.[ch]" | ${XARGS} ${GREP} -l '<db.h>' | \
${XARGS} ${REINPLACE_CMD} -e 's|<db.h>|<db3/db.h>|g'