I am trying to compile a program with x11 and use musl for the c library. I still have glibc on my system. Musl is located at /usr/local/musl/include
The glib headers are still in /usr/include
When I muild with
musl-gcc test.c
I get fatal error: X11/Xlib.h: no such file or directory
If I try
musl-gcc test.c -I/usr/include
It includes the glib headers instead of the musl headers and throws a bunch of errors.
If I try
musl-gcc test.c -I/usr/local/musl/include -I/usr/include
It still includes the headers from glib in /usr/include
How do I make musl-gcc use the musl headers but still include other files from /usr/include?