Gentoo Archives: gentoo-portage-dev

From: Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>
To: "gentoo-portage-dev@l.g.o" <gentoo-portage-dev@l.g.o>
Subject: Re: [gentoo-portage-dev] Passing CFLAGS="-fdebug-prefix-map=..=$(readlink -f ..)"
Date: Sat, 27 Jun 2020 14:19:51
Message-Id: bb60a9044743a444f278d20b5db44c10cf654cbd.camel@infinera.com
In Reply to: [gentoo-portage-dev] Passing CFLAGS="-fdebug-prefix-map=..=$(readlink -f ..)" by Joakim Tjernlund
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