1 |
On Sat, 2020-06-27 at 14:00 +0000, Joakim Tjernlund wrote:
|
2 |
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. |
3 |
> |
4 |
> |
5 |
> I am trying to add -fdebug-prefix-map to my CFLAGS but cannot get past "$(readlink -f ..)" |
6 |
> Portage will not expand $(anything) |
7 |
> |
8 |
> Any way to make portage expand "$(readlink -f ..)" ? |
9 |
> |
10 |
> Jocke |
11 |
|
12 |
Found it /etc/portage/bashrc add:
|
13 |
|
14 |
if [ $EBUILD_PHASE = configure ]; then
|
15 |
echo "Adding -fdebug-prefix-map to CFLAGS/CXXFLAGS"
|
16 |
CFLAGS="$CFLAGS -fdebug-prefix-map=..=$(readlink -f ..)"
|
17 |
CXXFLAGS="$CXXFLAGS -fdebug-prefix-map=..=$(readlink -f ..)"
|
18 |
fi |