summaryrefslogtreecommitdiffhomepage
path: root/vars/libtool_host.vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-02-09 12:41:13 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-02-09 12:41:13 +0000
commit189bfb63ae7a4f8a33f88c678071d16c5a4e3fde (patch)
treec62c3b56167ef27452df55451b60152b2f9043a2 /vars/libtool_host.vars
parent2bc84a207d3135ac8a0c9617ae36fd0fa3f7634a (diff)
downloadmidipix_build-189bfb63ae7a4f8a33f88c678071d16c5a4e3fde.tar.bz2
midipix_build-189bfb63ae7a4f8a33f88c678071d16c5a4e3fde.tar.xz
vars/build.vars:host_tools: adds autoconf_host v2.69.
vars/build.vars:host_tools: adds automake_host v1.16.1. vars/build.vars:host_tools: adds libtool_host v2.4.6. vars/libtool_host.vars: don't pass LIBTOOL=${...}.
Diffstat (limited to 'vars/libtool_host.vars')
-rw-r--r--vars/libtool_host.vars26
1 files changed, 26 insertions, 0 deletions
diff --git a/vars/libtool_host.vars b/vars/libtool_host.vars
new file mode 100644
index 00000000..b1383609
--- /dev/null
+++ b/vars/libtool_host.vars
@@ -0,0 +1,26 @@
+#
+# set -o errexit -o noglob are assumed.
+#
+
+pkg_libtool_host_build() {
+ local _no_autoconf="";
+ if [ ! -x "${PKG_CONFIGURE}" ]; then
+ _no_autoconf=1;
+ fi;
+ # N.B. We only specify CC= here if the current package does not use GNU
+ # autoconf as it often abuses it by appending -std={gnu99,...} to it
+ # instead of amending CFLAGS.
+ ex_rtl_run_cmd_unsplit make \
+ ${PKG_MAKEFLAGS_BUILD} \
+ ${PKG_MAKEFLAGS_BUILD_EXTRA} \
+ "AR=${PKG_AR}" "${_no_autoconf:+CC=${PKG_CC}}" \
+ "RANLIB=${PKG_RANLIB}" \
+ "${PKG_CFLAGS_BUILD:+CFLAGS=${PKG_CFLAGS_BUILD}}" \
+ "${PKG_CFLAGS_BUILD_EXTRA:+CFLAGS+=${PKG_CFLAGS_BUILD_EXTRA}}" \
+ "${PKG_LDFLAGS_BUILD:+LDFLAGS=${PKG_LDFLAGS_BUILD}}" \
+ "${PKG_LDFLAGS_BUILD_EXTRA:+LDFLAGS+=${PKG_LDFLAGS_BUILD_EXTRA}}"\
+ "${PKG_PKG_CONFIG:+PKG_CONFIG=${PKG_PKG_CONFIG}}" \
+ "${PKG_PKG_CONFIG_PATH:+PKG_CONFIG_PATH=${PKG_PKG_CONFIG_PATH}}";
+};
+
+# vim:filetype=sh