chiark
/
gitweb
/
~mdw
/
termux-packages
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
370d9aa
)
gdb: Fix to build on aarch64
author
Fredrik Fornwall
<fredrik@fornwall.net>
Thu, 10 Mar 2016 23:45:44 +0000
(18:45 -0500)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Thu, 10 Mar 2016 23:45:44 +0000
(18:45 -0500)
packages/gdb/build.sh
patch
|
blob
|
blame
|
history
diff --git
a/packages/gdb/build.sh
b/packages/gdb/build.sh
index 4d802d9cba9a005955c015d981a8b1a4f5fac199..e5c6b948c6ba50ea4f28d3170242d7f9497e03b3 100755
(executable)
--- a/
packages/gdb/build.sh
+++ b/
packages/gdb/build.sh
@@
-16,3
+16,11
@@
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 <stdlib.h> including <memory.h>:
+ 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
+}