mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-09-12 13:45:30 -04:00
Use --with-extra-ldflags for point to dummy libs
This commit is contained in:
parent
780137b827
commit
59c09bbd00
@ -5,7 +5,7 @@ export FREETYPE_DIR=`pwd`/freetype-2.6.2/build_android-${TARGET_SHORT}
|
||||
export CUPS_DIR=`pwd`/cups-2.2.4
|
||||
|
||||
# simplest to force headless:)
|
||||
export CPPFLAGS+="-I$FREETYPE_DIR -I$CUPS_DIR -DHEADLESS"
|
||||
export CPPFLAGS+=" -I$FREETYPE_DIR -I$CUPS_DIR -DHEADLESS"
|
||||
|
||||
# It isn't good, but need make it build anyways
|
||||
cp -R $CUPS_DIR/* $ANDROID_INCLUDE/
|
||||
@ -19,12 +19,13 @@ cp -R /usr/include/fontconfig $ANDROID_INCLUDE/
|
||||
mkdir dummy_libs
|
||||
ar cru dummy_libs/libpthread.a
|
||||
ar cru dummy_libs/libthread_db.a
|
||||
export LDFLAGS+="-L`pwd`/dummy_libs"
|
||||
export LDFLAGS+=" -L`pwd`/dummy_libs"
|
||||
|
||||
cd openjdk
|
||||
rm -rf build
|
||||
bash ./configure \
|
||||
--with-extra-cflags="$CPPFLAGS" \
|
||||
--with-extra-ldflags="$LDFLAGS" \
|
||||
--enable-option-checking=fatal \
|
||||
--openjdk-target=$TARGET \
|
||||
--with-jdk-variant=normal \
|
||||
|
Loading…
x
Reference in New Issue
Block a user