pacman/scripts/libmakepkg
Xiretza 95ef989978 makepkg: use -ffile-prefix-map instead of -fdebug-prefix-map
>From gcc(1):

-ffile-prefix-map=old=new
	[...] Specifying this option is equivalent to specifying all the
	individual -f*-prefix-map options. This can be used to make reproducible
	builds that are location independent.

Specifically, this additionally enables -fmacro-prefix-map=, which causes
prefix mapping to be applied to expansions of __FILE__ and similar macros.

Without this option, if source files are compiled by passing the
absolute file path to the compiler (as done by e.g. cmake), any
expansions of __FILE__ (e.g. from uses of assert()) will contain
$srcdir.

Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit e37f7d8b6b)
2022-10-02 11:16:56 +10:00
..
buildenv makepkg: use -ffile-prefix-map instead of -fdebug-prefix-map 2022-10-02 11:16:56 +10:00
executable makepkg: add PACMAN_AUTH configurable setting for sudo elevation 2021-04-07 22:41:54 +10:00
integrity Update copyright year 2021-03-01 12:22:20 +10:00
lint_config Update copyright year 2021-03-01 12:22:20 +10:00
lint_package Update copyright year 2021-03-01 12:22:20 +10:00
lint_pkgbuild Update copyright year 2021-03-01 12:22:20 +10:00
reproducible libmakepkg: reproducibilty for python packages 2021-08-08 22:49:32 +10:00
source Update copyright year 2021-03-01 12:22:20 +10:00
tidy makepkg: fix stripping of relocatable binaries with binutils>=2.37 2021-08-04 18:52:08 +10:00
util libmakepkg: allow correctly sourcing when $LIBRARY is not set 2021-08-04 21:59:32 +10:00
.gitignore libmakepkg: fix .gitignore to simply ignore all generated .sh files 2017-12-07 15:37:20 +10:00
buildenv.sh.in libmakepkg: allow correctly sourcing when $LIBRARY is not set 2021-08-04 21:59:32 +10:00
executable.sh.in libmakepkg: allow correctly sourcing when $LIBRARY is not set 2021-08-04 21:59:32 +10:00
integrity.sh.in Update copyright year 2021-03-01 12:22:20 +10:00
lint_config.sh.in Update copyright year 2021-03-01 12:22:20 +10:00
lint_package.sh.in Update copyright year 2021-03-01 12:22:20 +10:00
lint_pkgbuild.sh.in Update copyright year 2021-03-01 12:22:20 +10:00
meson.build libmakepkg: reproducibilty for python packages 2021-08-08 22:49:32 +10:00
reproducible.sh.in libmakepkg: reproducibilty for python packages 2021-08-08 22:49:32 +10:00
source.sh.in Update copyright year 2021-03-01 12:22:20 +10:00
srcinfo.sh.in Update copyright year 2021-03-01 12:22:20 +10:00
tidy.sh.in Update copyright year 2021-03-01 12:22:20 +10:00
util.sh.in Update copyright year 2021-03-01 12:22:20 +10:00