How to 'Compile against glibc build tree' ?
David Aldrich
David.Aldrich@EMEA.NEC.COM
Tue Dec 1 10:54:00 GMT 2015
Hi
I want to build our C++ application against glibc 2.22 on Ubuntu 14.04 (which has glibc 2.19) so I am following instructions at:
https://sourceware.org/glibc/wiki/Testing/Builds
I have cloned the glibc git repo, checked out release 2.22 and built it successfully.
Now I am following instructions:
https://sourceware.org/glibc/wiki/Testing/Builds#Compile_against_glibc_build_tree
These state:
BUILD=<path to the GLIBC build directory>
gcc \
-Wl,-rpath=${GLIBC}:\
${GLIBC}/math:\
${GLIBC}/elf:\
${GLIBC}/dlfcn:\
${GLIBC}/nss:\
${GLIBC}/nis:\
${GLIBC}/rt:\
${GLIBC}/resolv:\
${GLIBC}/crypt:\
${GLIBC}/nptl:\
${GLIBC}/dfp \
-Wl,--dynamic-linker=${BUILD}/lib/ld.so
<other compiler flags> -o <application> <application>.c
I'm not sure what is going on here. ${BUILD} seems to be the path to the build directory. What is ${GLIBC} ?
And, what is rpath for?
Best regards
David
More information about the Libc-help
mailing list