midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame 104.libelf.vars

Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
pkg_libelf_install_post() {
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
	if ! is_build_script_done installed2; then
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
		rm -f lib/libelf.def;
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
		echo EXPORTS > lib/libelf.def;
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
		perk -e lib/libelf.so >> lib/libelf.def;
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
		${HOST_NATIVE}-dlltool			\
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
			--output-lib lib/libelf.lib.a	\
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
			--dllname libelf.so		\
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
			--input-def lib/libelf.def;
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
		cp lib/libelf.lib.a ${PREFIX}/lib;
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
		set_build_script_done installed2 -finished;
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
};
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
Lucio Andrés Illanes Albornoz (arab, vxp) ce7607
# vim:filetype=sh