This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
How to 'Compile against glibc build tree' ?
- From: David Aldrich <David dot Aldrich at EMEA dot NEC dot COM>
- To: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Tue, 1 Dec 2015 10:54:33 +0000
- Subject: How to 'Compile against glibc build tree' ?
- Authentication-results: sourceware.org; auth=none
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