The LDFLAGS, CPPFLAGS, etc. are set during configure step.

We don't need to bother with the situations, when /etc/make.conf, etc.
are updated between configure and build.

The way things are now, linking might break in certain cases because
LDFLAGS is set to empty string (instead of being unset).

Notified by:	Pierre Guinoiseau
This commit is contained in:
Mikhail Teterin 2007-09-26 22:54:14 +00:00
parent a08b6b4dc3
commit dfcfbcc9ab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=200149

View file

@ -308,11 +308,6 @@ post-patch:
# deprecated gvCleanup
@${REINPLACE_CMD} -e "s|gvCleanup|gvFreeContext|g" \
${WRKSRC}/coders/dot.c
# Respect Make flags
@${REINPLACE_CMD} -E -e "s|^CPPFLAGS =|CPPFLAGS ?=|g" \
-e "s|^CXXFLAGS =|CXXFLAGS ?=|g" -e "s|^CFLAGS =|CFLAGS ?=|g" \
-e "s|^CC =|CC ?=|g" -e "s|^CPP =|CPP ?=|g" -e "s|^CXX =|CXX ?=|g" \
-e "s|^LDFLAGS =|LDFLAGS ?=|g" ${WRKSRC}/Makefile.in
post-install:
.if defined(WITHOUT_IMAGEMAGICK_16BIT_PIXEL)