X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/fc3ae02b63b322c9dd7fe85d7fa70a90814958dd..1ea423b5a32f5476fab521ce1286be0e99c96390:/packages/gdb/build.sh diff --git a/packages/gdb/build.sh b/packages/gdb/build.sh index 6ca430f6..e5c6b948 100755 --- a/packages/gdb/build.sh +++ b/packages/gdb/build.sh @@ -13,5 +13,14 @@ TERMUX_PKG_BUILD_IN_SRC="yes" # For frexp(3) usage: LDFLAGS+=" -lm" +# Fix "undefined reference to 'rpl_gettimeofday'" when building on x86: export gl_cv_func_gettimeofday_clobber=no export gl_cv_func_gettimeofday_posix_signature=yes + +termux_step_post_extract_package () { + if [ $TERMUX_ARCH = aarch64 ]; then + # Fix problem with including : + mv $TERMUX_PKG_SRCDIR/sim/aarch64/{memory.h,memory_sim.h} + perl -p -i -e 's/memory.h/memory_sim.h/' $TERMUX_PKG_SRCDIR/sim/aarch64/*c + fi +}