-
Notifications
You must be signed in to change notification settings - Fork 284
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
Difference in binary build size between official distribution package and self-compiling (Arch Linux) #3208
Comments
Is there maybe just a version mismatch? Are you comparing two x64 binaries or are they for different architectures? |
I'm doing everything on the same computer, running a x64 system (and building for this arch too as I haven't specified anything different). uname -a |
Just compared the two binaries using the file command: file out/Release/node How would I remove the debug_info and strip the executeable? |
Okay, that makes sense :) https://linux.die.net/man/1/strip is your friend here :) |
It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. |
It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. |
I previously opened this issue on the nodejs main repo but it seems to have been deleted.
I'm an Arch Linux user and the official build size of node when installed as a package is about 29 MB. When I download the PKGBUILD file myself (the file containing instructions how to build the package) and run makepkg, I also get a binary that's the same size as the official one.
But when I clone the nodejs repository, switch to the v15.7.0 tag, run configure with the same flags as in the PKGBUILD:
./configure
--prefix=/usr
--with-intl=system-icu
--without-npm
--shared-openssl
--shared-zlib
--shared-libuv
--experimental-http-parser
--shared-nghttp2
and then run make, I get a build that's about 10 MB larger, 39 MB.
Am I doing something wrong or missing something?
Thanks.
The text was updated successfully, but these errors were encountered: