summaryrefslogtreecommitdiffhomepage
path: root/104.libelf.vars
blob: 786e691ebb83a24643cfa2026ac6ffcdb6975624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pkg_libelf_install_post() {
	if ! is_build_script_done installed2; 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 installed2 -finished;
	fi;
};

# vim:filetype=sh