diff options
author | Vlad Glagolev | 2014-11-21 19:40:49 +0300 |
---|---|---|
committer | Vlad Glagolev | 2015-01-29 15:15:51 +0300 |
commit | 51378795bfa5ffcff77a43aa0bc31090df80d315 (patch) | |
tree | 7c71f12d39039786d2933a6af73fc52455b7588f | |
parent | 8ccb5be7ff3e459945412a184909b237082218ab (diff) |
glibc: added ability to build valgrind-friendly version
(cherry picked from commit 21338d5f7bbf149474af72cde762628a6270be68)
Conflicts:
libs/glibc/HISTORY
-rwxr-xr-x | libs/glibc/BUILD | 4 | ||||
-rwxr-xr-x | libs/glibc/CONFIGURE | 4 | ||||
-rw-r--r-- | libs/glibc/HISTORY | 5 |
3 files changed, 13 insertions, 0 deletions
diff --git a/libs/glibc/BUILD b/libs/glibc/BUILD index f9c2ec69af..1eb3680a69 100755 --- a/libs/glibc/BUILD +++ b/libs/glibc/BUILD @@ -1,5 +1,9 @@ make_single && +if [[ $GLIBC_DEBUG == "y" ]]; then + LDFLAGS="${LDFLAGS/-s/}" +fi && + # install x86_64 linker to lib instead of lib64 sedit "s/lib64/lib/" sysdeps/unix/sysv/linux/x86_64/ldconfig.h && sedit "s/264/2/" sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed && diff --git a/libs/glibc/CONFIGURE b/libs/glibc/CONFIGURE new file mode 100755 index 0000000000..8b1b1cd852 --- /dev/null +++ b/libs/glibc/CONFIGURE @@ -0,0 +1,4 @@ +if list_find "$LDFLAGS" "-s"; then + message "${PROBLEM_COLOR}WARNING: \$LDFLAGS containing strip (-s) option detected.${DEFAULT_COLOR}" && + config_query GLIBC_DEBUG "Enable debug build of $SPELL (required for debugging programs with Valgrind)?" y +fi diff --git a/libs/glibc/HISTORY b/libs/glibc/HISTORY index 5b8761cbd3..2983434b7f 100644 --- a/libs/glibc/HISTORY +++ b/libs/glibc/HISTORY @@ -1,3 +1,8 @@ +2014-11-21 Vlad Glagolev <stealth@sourcemage.org> + * DETAILS: PATCHLEVEL=1 + * BUILD: allow drop of strip option if a user desires so + * CONFIGURE: added, for GLIBC_DEBUG option + 2012-05-15 Sukneet Basuta <sukneet@sourcemage.org> * DETAILS: fix SOURCE URLS for sigs of kernel versions >=3.0 * PRE_BUILD: correctly verify files with GPG for Kernel headers >=3.1 |