You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By using dynamic buildmode the size of the package can be reduced with about 50%. Both the ipk size and the size of the installed files.
Without patch:
# ls -l `opkg files luajit|grep /`
-rwxr-xr-x 1 root root 405739 Dec 20 00:18 /usr/bin/luajit
lrwxrwxrwx 1 root root 22 Dec 20 18:11 /usr/lib/libluajit-5.1.so -> libluajit-5.1.so.2.1.0
lrwxrwxrwx 1 root root 22 Dec 20 18:11 /usr/lib/libluajit-5.1.so.2 -> libluajit-5.1.so.2.1.0
-rwxr-xr-x 1 root root 413787 Dec 20 00:18 /usr/lib/libluajit-5.1.so.2.1.0
With patch:
# ls -l `opkg files luajit|grep /`
-rwxr-xr-x 1 root root 20515 Dec 18 07:44 /usr/bin/luajit
lrwxrwxrwx 1 root root 22 Dec 20 18:13 /usr/lib/libluajit-5.1.so -> libluajit-5.1.so.2.1.0
lrwxrwxrwx 1 root root 22 Dec 20 18:13 /usr/lib/libluajit-5.1.so.2 -> libluajit-5.1.so.2.1.0
-rwxr-xr-x 1 root root 413787 Dec 18 07:44 /usr/lib/libluajit-5.1.so.2.1.0
Patch:
--- a/src/Makefile 2019-12-20 18:00:47.022569373 +0000
+++ b/src/Makefile 2019-12-20 18:00:59.102541964 +0000
@@ -71,14 +71,14 @@
# as dynamic mode.
#
# Mixed mode creates a static + dynamic library and a statically linked luajit.
-BUILDMODE= mixed
+#BUILDMODE= mixed
#
# Static mode creates a static library and a statically linked luajit.
#BUILDMODE= static
#
# Dynamic mode creates a dynamic library and a dynamically linked luajit.
# Note: this executable will only run when the library is installed!
-#BUILDMODE= dynamic
+BUILDMODE= dynamic
#
##############################################################################
The text was updated successfully, but these errors were encountered:
neheb
added a commit
to neheb/packages
that referenced
this issue
Jan 15, 2020
By using dynamic buildmode the size of the package can be reduced with about 50%. Both the ipk size and the size of the installed files.
Without patch:
With patch:
Patch:
The text was updated successfully, but these errors were encountered: