Blob Blame History Raw
#
# . ./build.vars and set -o errexit are assumed.
#

pkg_libelf_install_post() {
	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;
};

# vim:filetype=sh