I am trying to compile GTK and all its dependencies statically using my custom toolchain, which is based on glibc-2.29. The toolchain was built using crosstool-ng and targets x86_64-unknown-linux-gnu.
What I Have:
- A working toolchain with static libraries (
libc.a
,libm.a
,libstdc++.a
, etc.). - LLVM/Clang toolchain for building software.
- GTK source and its dependencies (glib, pango, cairo, gdk-pixbuf, etc.).
What I Need Help With:
- Dependency Handling:
- What is the best way to build and link all GTK dependencies statically?
- Are there any known issues when statically compiling dependencies like
glib
orpango
?
- Build Configuration:
- What
meson
orautotools
options should I use to enforce static linking? - Are there any flags required for
pkg-config
to locate static libraries?
- Toolchain Compatibility:
- Do I need to patch any dependency to ensure compatibility with
glibc-2.29
? - Has anyone successfully built a fully static GTK binary with a similar setup?
Any guidance, experience, or recommended steps would be greatly appreciated. Thanks!