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
These are my static-linked executables I'm building, which I think are interesting.
They consist of tools I use daily. As the name suggest, the static-linked
executables don't rely on libraries (CMIIW), so you can just run it (tested in glibc and musl environment).
How to build static android-platform-tools without GO.
Build Static Android Platform Tools without GO.
Some days ago, I found an interesting repository about android tools which can be built without GO compiler (check it here). If you're familiar with adb, fastboot, etc, you know what I'm talking about. It suits me because I have no GO compiler or won't bother to download one because I already have GCC. After firts successful build which result on dynamic linked binaries, I'm curious on building the static linked one. Here is how I did it !
Preparations
Before we go deep into building stuffs, we need to prepare some stuffs.
Since I moved to source-based linux distro with musl (Dragora GNU/Linux & LFS Musl),
I always wondering about how to run android platform tools on musl.
Android platform tools seems built againts glibc so running it on musl is almost impossible.
Not until I discovered about patchelf. Turns out, we can use patchelf to make android
platform tools binary tool (adb, fastboot, etc) to run on musl,
with a bit of trick of course.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After did some trials and errors I found a way to build gettext library + its libintl.so library on musl. I need the library so cosmic-files will work properly. Before I finally built gettext + libintl.so, everytime I build gettext I only get libgnuintl.so instead of libintl.so. Turns out, the solution is pretty simple. I just need to rename libintl.h header file from musl build and boom, gettext build will produce libintl.so instead of libgnuintl.so.
Vanity gaps & foreign toplevel management patch for dwl.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters