159 |
|
|
160 |
src_prepare() |
src_prepare() |
161 |
{ |
{ |
|
# # warn about /proc in chroot environments |
|
|
# [[ ! -d /proc/sys ]] && die "Please make sure /proc is mounted in chroot-environments." |
|
|
# |
|
|
# if [[ ${BOOTSTRAP} = 1 ]] |
|
|
# then |
|
|
# # must use java-gcj-compat as default jvm! |
|
|
# [[ $(java-update --get-implementation) != java5-gcj ]] && |
|
|
# die "please change to java5-gcj jvm: java-update java5-gcj" |
|
|
# else |
|
|
# # must use java7 as default jvm! |
|
|
# [[ $(java-update --get-implementation) != ${PNAME} ]] && |
|
|
# die "please change to ${PNAME} jvm: java-update ${PNAME}" |
|
|
# fi |
|
|
|
|
162 |
munpack ${ICEDTEA_SRCFILE} || die |
munpack ${ICEDTEA_SRCFILE} || die |
163 |
cd ${ICEDTEA_SRCDIR} |
cd ${ICEDTEA_SRCDIR} |
164 |
|
|
184 |
export HOTSPOT_BUILD_JOBS="${ALT_PARALLEL_COMPILE_JOBS}" |
export HOTSPOT_BUILD_JOBS="${ALT_PARALLEL_COMPILE_JOBS}" |
185 |
unset MAKEOPTS |
unset MAKEOPTS |
186 |
|
|
187 |
|
# fix some gcc6 issues, which do more rigorous checking of the C/C++ constructs (from LFS) |
188 |
|
export CFLAGS+=" -Wno-error=deprecated-declarations -fno-delete-null-pointer-checks -fno-lifetime-dse" |
189 |
|
export CXXFLAGS+=" -std=c++98 -fno-delete-null-pointer-checks -fno-lifetime-dse" |
190 |
|
|
191 |
if [[ ${BOOTSTRAP} = 1 ]] |
if [[ ${BOOTSTRAP} = 1 ]] |
192 |
then |
then |
193 |
myopts+=" --enable-bootstrap" |
myopts+=" --enable-bootstrap" |
204 |
--with-jdk-home=${JDK_HOME} \ |
--with-jdk-home=${JDK_HOME} \ |
205 |
--with-rhino \ |
--with-rhino \ |
206 |
--disable-downloading \ |
--disable-downloading \ |
207 |
|
--disable-werror \ |
208 |
--disable-docs \ |
--disable-docs \ |
209 |
--disable-zero \ |
--disable-zero \ |
210 |
--disable-cacao \ |
--disable-cacao \ |