mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
openjdk: tweak flags.
This commit is contained in:
@@ -173,13 +173,16 @@ BUILD()
|
||||
cd src
|
||||
ln -s src $sourceDir
|
||||
|
||||
# OpenJDK code is not completely valid C++11
|
||||
export CPPFLAGS="-fpermissive -Wno-error=literal-suffix"
|
||||
# set the C++ standard as the default changed since gcc6
|
||||
EXTRA_CXX_FLAGS="-std=gnu++98 -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
||||
EXTRA_CFLAGS="-Wno-error -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
||||
|
||||
bash ./common/autoconf/autogen.sh
|
||||
bash ./configure --with-boot-jdk-jvmargs="-Xmx${maxHeapSize}" \
|
||||
--with-freetype-include="${freeTypeHeaders}" \
|
||||
--with-freetype-lib="${freeTypeLib}"
|
||||
--with-freetype-lib="${freeTypeLib}" \
|
||||
--with-extra-cxxflags="$EXTRA_CXX_FLAGS" \
|
||||
--with-extra-cflags="$EXTRA_CFLAGS"
|
||||
|
||||
make images
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user