pacman/scripts/libmakepkg
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
..
integrity libmakepkg: Fix improperly spelled local variable declaration 2017-07-06 13:21:42 +10:00
lint_package libmakepkg: only output package file names when checking for build references 2017-10-17 20:31:06 +10:00
lint_pkgbuild Update copyright years 2017-01-04 13:59:14 +10:00
source libmakepkg: check for invalid tags in git 2017-09-13 14:20:35 +10:00
tidy makepkg: tell the compiler to record debugging info for debug packages 2017-12-07 15:54:16 +10:00
util makepkg: refactor archive compression for reusability 2017-12-07 15:46:04 +10:00
.gitignore libmakepkg: fix .gitignore to simply ignore all generated .sh files 2017-12-07 15:37:20 +10:00
integrity.sh.in Update copyright years 2017-01-04 13:59:14 +10:00
lint_package.sh.in libmakepkg: grammar fix 2017-09-14 09:45:53 +10:00
lint_pkgbuild.sh.in Update copyright years 2017-01-04 13:59:14 +10:00
source.sh.in Update copyright years 2017-01-04 13:59:14 +10:00
srcinfo.sh.in Update copyright years 2017-01-04 13:59:14 +10:00
tidy.sh.in Update copyright years 2017-01-04 13:59:14 +10:00
util.sh.in Update copyright years 2017-01-04 13:59:14 +10:00