-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drop depenancy on glib2 possible? #266
Comments
Ah, 1MB of glib2 is stripped binary size ? ksmbd-tools is fully tied with glib2 so that's not easy. |
@namjaejeon 943K is size of glib2, and it is gzip compressed size |
943K is the size on openwrt |
@namjaejeon any update on this ? |
@ptpt52 It is impossible for now. glib is already used tightly by ksmbd-tools. |
@ptpt52 And ksmbd-tools built-in glib has been used in openWRT for a long time. Why is this suddenly a problem? |
|
@namjaejeon for version 3.4.5 glib2 is not needed. |
the According to my observation, you only use a few C API functions in glib2, but these functions can be replaced by standard C lib, especially some data structures and functions |
I can not understand this. ksmbd-tools 3.4.5 need glib2.0. @neheb Is it true that openWRT has this issue ? |
glib2 is linked statically with LTO. Size is 55KB: https://downloads.openwrt.org/snapshots/packages/mips_24kc/packages/ Why are you linking to the shared library? |
but how to patch it to link statically? |
oh I see what you're doing. updating to HEAD and getting rid of that patch. it has a silent addition to link glib2 statically. |
ok, let me try it out. |
@namjaejeon
for now ksmbd-tools run depends on glib2
could it possible to provide an option to drop glib2?
glib2 is about 1MB size and hard to install into small flash openwrt.
The text was updated successfully, but these errors were encountered: