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:
f1e31fa
)
elfutils: Small preparation for clang
author
Fredrik Fornwall
<fredrik@fornwall.net>
Wed, 18 May 2016 20:47:18 +0000
(16:47 -0400)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Wed, 18 May 2016 20:47:18 +0000
(16:47 -0400)
packages/elfutils/build.sh
patch
|
blob
|
blame
|
history
diff --git
a/packages/elfutils/build.sh
b/packages/elfutils/build.sh
index 4ce198507ef2b13c8dcd9f4833c954ea410f980e..72050b44a4f9ba135fcc9e5713acabba1944baa0 100644
(file)
--- a/
packages/elfutils/build.sh
+++ b/
packages/elfutils/build.sh
@@
-26,8
+26,11
@@
termux_step_pre_configure () {
cd $TERMUX_PKG_TMPDIR
tar xf $ARGP_FILE
cd argp-standalone-1.3
cd $TERMUX_PKG_TMPDIR
tar xf $ARGP_FILE
cd argp-standalone-1.3
+ ORIG_CFLAGS="$CFLAGS"
+ CFLAGS+=" -std=gnu89"
./configure --host=$TERMUX_HOST_PLATFORM
make
./configure --host=$TERMUX_HOST_PLATFORM
make
+ CFLAGS="$ORIG_CFLAGS"
cp $TERMUX_PKG_BUILDER_DIR/error.h .
cp $TERMUX_PKG_BUILDER_DIR/stdio_ext.h .
cp $TERMUX_PKG_BUILDER_DIR/error.h .
cp $TERMUX_PKG_BUILDER_DIR/stdio_ext.h .