Respect CC, CPP and CXX with full paths.

PR:		203747
This commit is contained in:
Jung-uk Kim
2015-12-14 23:02:49 +00:00
parent 7f355822bb
commit c8b2413599

View File

@@ -268,6 +268,18 @@ JDK_BUILD_TYPE= release
AUTOCONF_ARGS= -I . -o generated-configure.sh generated-configure.ac
# XXX configure script rejects CC/CPP/CXX with absolute paths.
.for t in CC CPP CXX
.if defined(${t}) && ${${t}:[#]} == 1 && ${${t}:M/*}
BUILD_${t}= ${${t}:C|.*/||g}
CONFIGURE_ENV+= ${t}="${BUILD_${t}}"
TOOLS_DIR+= ${${t}:S|/${BUILD_${t}}$||}
.endif
.endfor
.if defined(TOOLS_DIR)
CONFIGURE_ARGS+= --with-tools-dir="${TOOLS_DIR:u:S/ /:/g}"
.endif
.include <bsd.port.pre.mk>
.if ${ARCH:Marmv6*} || ${ARCH} == "i386"