summaryrefslogtreecommitdiffhomepage
path: root/104.libelf.vars
diff options
context:
space:
mode:
Diffstat (limited to '104.libelf.vars')
-rw-r--r--104.libelf.vars15
1 files changed, 15 insertions, 0 deletions
diff --git a/104.libelf.vars b/104.libelf.vars
new file mode 100644
index 00000000..786e691e
--- /dev/null
+++ b/104.libelf.vars
@@ -0,0 +1,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