Browse Source

pforth: Respect LDFLAGS in build

Fixes DT_RUNPATH (see #3490).
emacs-27
Fredrik Fornwall 6 years ago
parent
commit
675f40be24
  1. 3
      packages/pforth/build.sh

3
packages/pforth/build.sh

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Portable Forth in C"
TERMUX_PKG_LICENSE="Public Domain" TERMUX_PKG_LICENSE="Public Domain"
_COMMIT=ee8dc9e9e0f59b8e38dec3732caefe9f3af2b431 _COMMIT=ee8dc9e9e0f59b8e38dec3732caefe9f3af2b431
TERMUX_PKG_VERSION=20180513 TERMUX_PKG_VERSION=20180513
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=3cf472bb944aa53b0eb0b93d021c8c2c0eff18dd2e3e54daddaf4af342e441ea TERMUX_PKG_SHA256=3cf472bb944aa53b0eb0b93d021c8c2c0eff18dd2e3e54daddaf4af342e441ea
TERMUX_PKG_SRCURL=https://github.com/philburk/pforth/archive/${_COMMIT}.zip TERMUX_PKG_SRCURL=https://github.com/philburk/pforth/archive/${_COMMIT}.zip
TERMUX_PKG_HOSTBUILD=yes TERMUX_PKG_HOSTBUILD=yes
@ -31,7 +32,7 @@ termux_step_pre_configure() {
done done
export TERMUX_PKG_BUILDDIR=$TERMUX_PKG_SRCDIR/build/unix export TERMUX_PKG_BUILDDIR=$TERMUX_PKG_SRCDIR/build/unix
export CC="$CC $CFLAGS" export CC="$CC $CFLAGS $LDFLAGS"
} }
termux_step_make_install() { termux_step_make_install() {
cp $TERMUX_PKG_BUILDDIR/pforth_standalone $TERMUX_PREFIX/bin/pforth cp $TERMUX_PKG_BUILDDIR/pforth_standalone $TERMUX_PREFIX/bin/pforth

Loading…
Cancel
Save