fix build without gcc in base

Always use gcc whatever the default compiler is to build openjdk (it needs gcc -dumpspecs)
Define HOST_CC to ${CC} to make avoir direct call to "/usr/bin/gcc"
This commit is contained in:
Baptiste Daroussin 2013-08-26 06:35:58 +00:00
parent 496c7e9e77
commit 625ccfe662
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=325372

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: openjdk7
# Date created: 2 January 2010
# Whom: Greg Lewis <glewis@FreeBSD.org>
#
# Created by: Greg Lewis <glewis@FreeBSD.org>
# $FreeBSD$
#
PORTNAME= openjdk
PORTVERSION= ${JDK_MAJOR_VERSION}.${PORT_MINOR_VERSION}.${PORT_BUILD_NUMBER}
@ -29,10 +25,11 @@ LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_ZIP= yes
USE_GMAKE= yes
USES= iconv
USES= iconv gmake
USE_XORG+= x11 xext xi xrender xt xtst
MAKE_ARGS= CC=${CC} CXX=${CXX} HOST_CC=${CC}
MAKE_JOBS_UNSAFE= yes
USE_GCC= any
OPTIONS_DEFINE= DEBUG POLICY TZUPDATE
OPTIONS_DEFAULT= POLICY TZUPDATE