summaryrefslogtreecommitdiffhomepage
path: root/104.libelf.vars
blob: 7a0f9e3d0f160783d21f224160826cf5c4c946b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# . ./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