CC=powerpc-linux-gnu-gcc CXX=powerpc-linux-gnu-g++ sh ./configure --openjdk-target=powerpc-linux-gnu --with-sysroot=/chroots/powerpc/ --x-libraries=/chroots/powerpc/usr/lib/powerpc-linux-gnu/ --with-freetype-lib=/chroots/powerpc/usr/lib/powerpc-linux-gnu/ --with-freetype-include=/chroots/powerpc/usr/include/freetype2 --with-boot-jdk=/home/shade/Install/jdk8u-dev/ --with-jvm-variants=zero CC=powerpc-linux-gnu-gcc CXX=powerpc-linux-gnu-g++ sh ./configure --openjdk-target=powerpc-linux-gnu --with-sysroot=/chroots/powerpc/ --x-libraries=/chroots/powerpc/usr/lib/powerpc-linux-gnu/ --with-freetype-lib=/chroots/powerpc/usr/lib/powerpc-linux-gnu/ --with-freetype-include=/chroots/powerpc/usr/include/freetype2 --with-boot-jdk=/home/shade/Install/jdk8u-dev/ --with-jvm-variants=zero --with-extra-cflags=-Wno-error diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh index 71fabf4dbb..cc27b99c0e 100644 --- a/common/autoconf/generated-configure.sh +++ b/common/autoconf/generated-configure.sh @@ -48239,6 +48239,10 @@ $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\" fi fi + if test "x$SYSROOT" != x; then + FREETYPE_CFLAGS="$FREETYPE_CFLAGS --sysroot $SYSROOT" + fi + if test "x$FREETYPE_LIBS" = x; then if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4 index 6efae578ea..c39cb08dac 100644 --- a/common/autoconf/libraries.m4 +++ b/common/autoconf/libraries.m4 @@ -578,6 +578,10 @@ AC_DEFUN_ONCE([LIB_SETUP_FREETYPE], fi fi + if test "x$SYSROOT" != x; then + FREETYPE_CFLAGS="$FREETYPE_CFLAGS --sysroot $SYSROOT" + fi + if test "x$FREETYPE_LIBS" = x; then BASIC_FIXUP_PATH(FREETYPE_LIB_PATH) if test "x$OPENJDK_TARGET_OS" = xwindows; then