This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to 'Compile against glibc build tree' ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]