~mdw
/
termux-packages
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang: Use X86 as target arch for x86-64
[termux-packages]
/
packages
/
elfutils
/
build.sh
diff --git
a/packages/elfutils/build.sh
b/packages/elfutils/build.sh
index
18e6435
..
72050b4
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 .
@@
-37,12
+40,3
@@
termux_step_pre_configure () {
LDFLAGS+=" -L$TERMUX_PKG_TMPDIR/argp-standalone-1.3"
CPPFLAGS+=" -isystem $TERMUX_PKG_TMPDIR/argp-standalone-1.3"
}
LDFLAGS+=" -L$TERMUX_PKG_TMPDIR/argp-standalone-1.3"
CPPFLAGS+=" -isystem $TERMUX_PKG_TMPDIR/argp-standalone-1.3"
}
-
-#termux_step_post_make_install () {
-#make install-includeHEADERS
-#}
-
-termux_step_post_massage () {
- # Remove to avoid spurios linking to libelf (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=10648):
- rm -f $TERMUX_PREFIX/lib/libelf*
-}