Due to a school project, I made a small change to the glib source code (GFileInfo.c in gio to be more precise), ran ./configure (with a new prefix), make and make install.
Then I changed /usr/lib/x86_64-linux-gnu/pkgconfig/gio-2.0.pc file so that the prefix is my working directory and that everything goes to the right path. Writing "pkg-config --cflags --libs gio-2.0" in the terminal seems to give a good output.
Then I made a small haxx.c file that took use of this new glib. I compiled it with Code:
gcc haxx.c $(pkg-config --cflags --libs gio-2.0)
But when I run "ldd a.out", it only shows me the old paths. What am I doing wrong?
tl;dr: Built my own glib on a different path. Can't get my haxx.c program to use it. Why and how?