pacman/scripts
Eli Schwartz 8bec63bf92 makepkg: tell the compiler to record debugging info for debug packages
In commit 8b0d59b83a support was added for
storing the source files of binaries in debug packages. This made use of
the debugedit program which is part of the RPM package manager, which is
not very standalone.

The same effect can be achieved using -fdebug-prefix-map, an option
accepted by both the gcc and clang compilers which modifies how the
compiler itself stores the references to the source files rather than
requiring us to later edit the produced binaries. This also removes the
dependency on external programs like debugedit.

As a result of this change, source files will only be effectively added
for programs which actually use the exported CFLAGS. This is a reasonable
tradeoff as we expect our CFLAGS to be used rather than ignored. Upstream
software which do not produce useful debug packages are expected to fix
their build systems to respect the environment CFLAGS.

As a result of this change, the routine for extracting source filenames
from binaries had to be modified to derive the source file from the
final debug location, rather than the other way around.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2017-12-07 15:54:16 +10:00
..
completion Move bash/zsh completion out of contrib 2016-10-10 10:38:05 +10:00
libmakepkg makepkg: tell the compiler to record debugging info for debug packages 2017-12-07 15:54:16 +10:00
library makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
po makepkg: warn about dotfiles in package root 2017-01-04 13:59:14 +10:00
.gitignore makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
Makefile.am makepkg: refactor archive compression for reusability 2017-12-07 15:46:04 +10:00
makepkg-template.pl.in Update copyright years 2017-01-04 13:59:14 +10:00
makepkg.sh.in makepkg: tell the compiler to record debugging info for debug packages 2017-12-07 15:54:16 +10:00
pacman-db-upgrade.sh.in Update copyright years 2017-01-04 13:59:14 +10:00
pacman-key.sh.in Update copyright years 2017-01-04 13:59:14 +10:00
pkgdelta.sh.in Replace @SIZECMD@ with POSIX-compatible command 2017-04-04 12:21:20 +10:00
repo-add.sh.in Replace @SIZECMD@ with POSIX-compatible command 2017-04-04 12:21:20 +10:00
wrapper.sh.in Update copyright years 2017-01-04 13:59:14 +10:00