mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-11-23 14:51:06 +01:00
16 lines
529 B
Bash
16 lines
529 B
Bash
local _wrksrc="$wrksrc${build_wrksrc:+/$build_wrksrc}"
|
|
case "$build_style" in
|
|
cmake)
|
|
CFLAGS="${CFLAGS} -ffile-prefix-map=$_wrksrc/${cmake_builddir:-build}=."
|
|
CXXFLAGS="${CXXFLAGS} -ffile-prefix-map=$_wrksrc/${cmake_builddir:-build}=."
|
|
;;
|
|
meson)
|
|
CFLAGS="${CFLAGS} -ffile-prefix-map=$_wrksrc/${meson_builddir:-build}=."
|
|
CXXFLAGS="${CXXFLAGS} -ffile-prefix-map=$_wrksrc/${meson_builddir:-build}=."
|
|
;;
|
|
*)
|
|
CFLAGS="${CFLAGS} -ffile-prefix-map=$_wrksrc=."
|
|
CXXFLAGS="${CXXFLAGS} -ffile-prefix-map=$_wrksrc=."
|
|
esac
|
|
|
|
unset _wrksrc
|