Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Static Linking Through pkgconfig with LDAP/LBER is Broken #1619
In Gentoo, the libcurl.pc file generated for pkg-config has the following line:
$ grep Libs.private /usr/lib64/pkgconfig/libcurl.pc
so a call to pkgconfig for static linking returns those libraries in that order:
$ pkg-config --static --libs libcurl
but ldap depends on lber so linking fails:
$ gcc -o test test.c -static
Compilation works if I manually swap the positions of lber and ldap in the command line.