Support glog on aarch64 (#2563)

This commit is contained in:
ZHAO Chun
2019-12-25 13:56:15 +08:00
committed by GitHub
parent 4ff1299e0b
commit 35503cf8a3
3 changed files with 16 additions and 0 deletions

View File

@ -289,6 +289,10 @@ build_glog() {
check_if_source_exist $GLOG_SOURCE
cd $TP_SOURCE_DIR/$GLOG_SOURCE
# to generate config.guess and config.sub to support aarch64
rm -rf config.*
autoreconf -i
CPPFLAGS="-I${TP_INCLUDE_DIR} -fpermissive -fPIC" \
LDFLAGS="-L${TP_LIB_DIR}" \
CFLAGS="-fPIC" \

View File

@ -225,6 +225,8 @@ if [ ! -f $PATCHED_MARK ]; then
patch -p1 < $TP_PATCH_DIR/glog-0.3.3-vlog-double-lock-bug.patch
patch -p1 < $TP_PATCH_DIR/glog-0.3.3-for-palo2.patch
patch -p1 < $TP_PATCH_DIR/glog-0.3.3-remove-unwind-dependency.patch
# patch Makefile.am to make autoreconf work
patch -p0 < $TP_PATCH_DIR/glog-0.3.3-makefile.patch
touch $PATCHED_MARK
fi
cd -

View File

@ -0,0 +1,10 @@
--- Makefile.am.orig 2019-12-25 09:42:04.990000000 +0800
+++ Makefile.am 2019-12-25 09:42:26.300000000 +0800
@@ -1,5 +1,7 @@
## Process this file with automake to produce Makefile.in
+AUTOMAKE_OPTIONS = subdir-objects foreign
+
# Make sure that when we re-make ./configure, we get the macros we need
ACLOCAL_AMFLAGS = -I m4