patchelf: new external

`patchelf' allows us to modify ELF objects, .e.g, changing dynamic
loader. Used by SCRAM post-install step to set dynamic loader from
CMSDIST (glibc package).

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
glibc: update to match SLC6 native version

There are over 150+ patches by Red Hat on top of glibc. Updates
glibc to match exact content and compilation flags as in original
Red Hat RPM SPEC. Two options were disabled:
- NSS crypt
- SystemTap support

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
glibc-2.12.2-fix-dl-tls: remove obsolete patch

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
gcc-toolfile: set -dynamic-linker in LDFLAGS for C/C++

The following is needed to set correct dynamic loader if binaries
are built in SCRAM developer area.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
scram-project-build: add post-install step to change dynamic loader

Only on slc6_amd64_* have a post-install step to modify ELF objects
in bin/$SCRAM_ARCH and test/$SCRAM_ARCH interpreter (dynamic loader).
Dynamic loader is bundles with CMSSW in glibc package (CMSDIST).

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
cmssw: set changeDynLoader to yes

Setting changeDynLoader macro to "yes" activates ELF patching.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
Merge pull request #839 from davidlt/patch-elf

Post-install step for ELF patching on SCRAM projects