index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Eli Schwartz <eschwartz@archlinux.org> | 2017-10-30 14:35:23 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2017-12-07 15:54:16 +1000 |
commit | 8bec63bf92d8dd028aa88dbd5109c314cdb9ebea (patch) | |
tree | d46d7122ed1295d2e51d3092406aeee45fd93a1b /scripts/makepkg.sh.in | |
parent | 259d521e37c4cbcdbdc074e6cf832d233f2a9528 (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 4 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 1191e4ec..e5ebfee4 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -379,6 +379,10 @@ prepare_buildenv() { fi if check_option "debug" "y"; then + if [[ -v DBGSRCDIR ]]; then + DEBUG_CFLAGS+=" -fdebug-prefix-map=$srcdir=$DBGSRCDIR" + DEBUG_CXXFLAGS+=" -fdebug-prefix-map=$srcdir=$DBGSRCDIR" + fi CFLAGS+=" $DEBUG_CFLAGS" CXXFLAGS+=" $DEBUG_CXXFLAGS" fi |