Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone
Blob Blame History Raw
#
# . ./build.vars and set -o errexit are assumed.
#

pkg_libelf_install_post() {
	if ! is_build_script_done install2; then
		rm -f lib/libelf.def;
		echo EXPORTS > lib/libelf.def;
		perk -e lib/libelf.so >> lib/libelf.def;
		${HOST_NATIVE}-dlltool			\
			--output-lib lib/libelf.lib.a	\
			--dllname libelf.so		\
			--input-def lib/libelf.def;
		cp lib/libelf.lib.a ${PREFIX}/lib;
		set_build_script_done install2 -finish;
	fi;
};

# vim:filetype=sh