Lucio Andrés Illanes Albornoz 189bfb
#
Lucio Andrés Illanes Albornoz 2b85d0
# set +o errexit -o noglob is assumed.
Lucio Andrés Illanes Albornoz 189bfb
#
Lucio Andrés Illanes Albornoz 189bfb
Lucio Andrés Illanes Albornoz 189bfb
pkg_libtool_host_build() {
Lucio Andrés Illanes Albornoz 189bfb
	local _no_autoconf="";
Lucio Andrés Illanes Albornoz 189bfb
	if [ ! -x "${PKG_CONFIGURE}" ]; then
Lucio Andrés Illanes Albornoz 189bfb
		_no_autoconf=1;
Lucio Andrés Illanes Albornoz 189bfb
	fi;
Lucio Andrés Illanes Albornoz 189bfb
	# N.B.	We only specify CC= here if the current package does not use GNU
Lucio Andrés Illanes Albornoz 189bfb
	#	autoconf as it often abuses it by appending -std={gnu99,...} to it
Lucio Andrés Illanes Albornoz 189bfb
	#	instead of amending CFLAGS.
Lucio Andrés Illanes Albornoz c6d6e0
	rtl_run_cmd_unsplit make						\
Lucio Andrés Illanes Albornoz 189bfb
		${PKG_MAKEFLAGS_BUILD}						\
Lucio Andrés Illanes Albornoz 189bfb
		${PKG_MAKEFLAGS_BUILD_EXTRA}					\
Lucio Andrés Illanes Albornoz 189bfb
		"AR=${PKG_AR}" "${_no_autoconf:+CC=${PKG_CC}}"			\
Lucio Andrés Illanes Albornoz 189bfb
		"RANLIB=${PKG_RANLIB}"						\
Lucio Andrés Illanes Albornoz 189bfb
		"${PKG_CFLAGS_BUILD:+CFLAGS=${PKG_CFLAGS_BUILD}}"		\
Lucio Andrés Illanes Albornoz 189bfb
		"${PKG_CFLAGS_BUILD_EXTRA:+CFLAGS+=${PKG_CFLAGS_BUILD_EXTRA}}"	\
Lucio Andrés Illanes Albornoz 189bfb
		"${PKG_LDFLAGS_BUILD:+LDFLAGS=${PKG_LDFLAGS_BUILD}}"		\
Lucio Andrés Illanes Albornoz 189bfb
		"${PKG_LDFLAGS_BUILD_EXTRA:+LDFLAGS+=${PKG_LDFLAGS_BUILD_EXTRA}}"\
Lucio Andrés Illanes Albornoz 189bfb
		"${PKG_PKG_CONFIG:+PKG_CONFIG=${PKG_PKG_CONFIG}}"		\
Lucio Andrés Illanes Albornoz 189bfb
		"${PKG_PKG_CONFIG_PATH:+PKG_CONFIG_PATH=${PKG_PKG_CONFIG_PATH}}";
Lucio Andrés Illanes Albornoz 189bfb
};
Lucio Andrés Illanes Albornoz 189bfb
Lucio Andrés Illanes Albornoz bf9edf
# vim:filetype=sh textwidth=0