diff mbox series

[meta-oe] ace: Fix contains reference to TMPDIR [buildpaths] error

Message ID 20250621102550.1523918-1-alperyasinak1@gmail.com
State New
Headers show
Series [meta-oe] ace: Fix contains reference to TMPDIR [buildpaths] error | expand

Commit Message

Alper Ak June 21, 2025, 10:25 a.m. UTC
ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_Compression.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_ETCL_Parser.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_ETCL.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_Monitor_Control.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_RLECompression.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
ERROR: ace-8.0.2-r0 do_package_qa: Fatal QA errors were found, failing task.

Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
---
 meta-oe/recipes-connectivity/ace/ace_8.0.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Yoann Congal June 21, 2025, 12:59 p.m. UTC | #1
Le sam. 21 juin 2025 à 12:26, Alper Ak via lists.openembedded.org
<alperyasinak1=gmail.com@lists.openembedded.org> a écrit :

> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File
> /usr/lib/.debug/libACE_Compression.so.8.0.2 in package ace-dbg contains
> reference to TMPDIR [buildpaths]
> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File
> /usr/lib/.debug/libACE_ETCL_Parser.so.8.0.2 in package ace-dbg contains
> reference to TMPDIR [buildpaths]
> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File
> /usr/lib/.debug/libACE_ETCL.so.8.0.2 in package ace-dbg contains reference
> to TMPDIR [buildpaths]
> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File
> /usr/lib/.debug/libACE.so.8.0.2 in package ace-dbg contains reference to
> TMPDIR [buildpaths]
> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File
> /usr/lib/.debug/libACE_Monitor_Control.so.8.0.2 in package ace-dbg contains
> reference to TMPDIR [buildpaths]
> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File
> /usr/lib/.debug/libACE_RLECompression.so.8.0.2 in package ace-dbg contains
> reference to TMPDIR [buildpaths]
> ERROR: ace-8.0.2-r0 do_package_qa: Fatal QA errors were found, failing
> task.
>
> Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
> ---
>  meta-oe/recipes-connectivity/ace/ace_8.0.2.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
> b/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
> index b730b0a86c..e62ed39d0b 100644
> --- a/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
> +++ b/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
> @@ -27,7 +27,7 @@ export ACE_ROOT = "${UNPACKDIR}/ACE_wrappers"
>  inherit pkgconfig
>
>  CXXFLAGS:append = " -fpermissive -Wnodeprecated-declarations"
> -CXX:append = " -ffile-prefix-map=${UNPACKDIR}= "
> +CXX:append = " ${DEBUG_PREFIX_MAP} -ffile-prefix-map=${UNPACKDIR}= "
>

Hello,

${DEBUG_PREFIX_MAP} is usually in CXXFLAGS (set in
poky/meta/conf/bitbake.conf)

Do you know why it is not the case here? or why does it not work?

Thanks!


>  EXTRA_OEMAKE += "INSTALL_LIB=${baselib} install_rpath=0"
>
>  do_install() {
> --
> 2.43.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#117996):
> https://lists.openembedded.org/g/openembedded-devel/message/117996
> Mute This Topic: https://lists.openembedded.org/mt/113755735/4316185
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> yoann.congal@smile.fr]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Alper Ak June 22, 2025, 9:17 a.m. UTC | #2
> Hello,
> ${DEBUG_PREFIX_MAP} is usually in CXXFLAGS (set in poky/meta/conf/bitbake.conf)
> Do you know why it is not the case here? or why does it not work?
> Thanks!

Although Yocto/BitBake sets variables like CXXFLAGS and passes them to
the build environment, if i'm not wrong, these flags will only affect
the final compiler invocation if the project's own build system
actually uses those variables in its Makefiles or build scripts.

Looks like ACE doesn't use CXXFLAGS in its main Makefiles or compiler
calls.  Instead of it, it often uses variables like CCFLAGS, CPPFLAGS
or directly invokes the compiler using the CXX, without including
CXXFLAGS. As a result, any flags added to CXXFLAGS, such as
${DEBUG_PREFIX_MAP}, don't reach the compiler and the QA buildpaths
issue remains unresolved.

Appending the flag directly to CXX works because ACE always calls the
compiler as "$(CXX) ...", so anything added to CXX is included in
every compiler invocation regardless of how the build system is
structured.  As I said, I was found that ACE's Makefiles do include
CPPFLAGS in the compiler calls. So, adding ${DEBUG_PREFIX_MAP} to
CPPFLAGS allows the flag to be properly propagated to the compiler and
resolves the QA issue.

My thought before you asked the question was just "the problem is
caused by the project.". Now we have detailed it and figured out why.

It seems that our solution here should be CPPFLAGS:append = "
${DEBUG_PREFIX_MAP}". Let me know if I'm wrong or if there is a better
way.


Yoann Congal <yoann.congal@smile.fr>, 21 Haz 2025 Cmt, 16:00 tarihinde
şunu yazdı:
>
>
>
> Le sam. 21 juin 2025 à 12:26, Alper Ak via lists.openembedded.org <alperyasinak1=gmail.com@lists.openembedded.org> a écrit :
>>
>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_Compression.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_ETCL_Parser.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_ETCL.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_Monitor_Control.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_RLECompression.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
>> ERROR: ace-8.0.2-r0 do_package_qa: Fatal QA errors were found, failing task.
>>
>> Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
>> ---
>>  meta-oe/recipes-connectivity/ace/ace_8.0.2.bb | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb b/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
>> index b730b0a86c..e62ed39d0b 100644
>> --- a/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
>> +++ b/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
>> @@ -27,7 +27,7 @@ export ACE_ROOT = "${UNPACKDIR}/ACE_wrappers"
>>  inherit pkgconfig
>>
>>  CXXFLAGS:append = " -fpermissive -Wnodeprecated-declarations"
>> -CXX:append = " -ffile-prefix-map=${UNPACKDIR}= "
>> +CXX:append = " ${DEBUG_PREFIX_MAP} -ffile-prefix-map=${UNPACKDIR}= "
>
>
> Hello,
>
> ${DEBUG_PREFIX_MAP} is usually in CXXFLAGS (set in poky/meta/conf/bitbake.conf)
>
> Do you know why it is not the case here? or why does it not work?
>
> Thanks!
>
>>
>>  EXTRA_OEMAKE += "INSTALL_LIB=${baselib} install_rpath=0"
>>
>>  do_install() {
>> --
>> 2.43.0
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#117996): https://lists.openembedded.org/g/openembedded-devel/message/117996
>> Mute This Topic: https://lists.openembedded.org/mt/113755735/4316185
>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [yoann.congal@smile.fr]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>
>
> --
> Yoann Congal
> Smile ECS
Yoann Congal June 22, 2025, 1 p.m. UTC | #3
Le dimanche 22 juin 2025, Alper Ak <alperyasinak1@gmail.com> a écrit :
>> Hello,
>> ${DEBUG_PREFIX_MAP} is usually in CXXFLAGS (set in
poky/meta/conf/bitbake.conf)
>> Do you know why it is not the case here? or why does it not work?
>> Thanks!
>
> Although Yocto/BitBake sets variables like CXXFLAGS and passes them to
> the build environment, if i'm not wrong, these flags will only affect
> the final compiler invocation if the project's own build system
> actually uses those variables in its Makefiles or build scripts.
>
> Looks like ACE doesn't use CXXFLAGS in its main Makefiles or compiler
> calls.  Instead of it, it often uses variables like CCFLAGS, CPPFLAGS
> or directly invokes the compiler using the CXX, without including
> CXXFLAGS. As a result, any flags added to CXXFLAGS, such as
> ${DEBUG_PREFIX_MAP}, don't reach the compiler and the QA buildpaths
> issue remains unresolved.
>
> Appending the flag directly to CXX works because ACE always calls the
> compiler as "$(CXX) ...", so anything added to CXX is included in
> every compiler invocation regardless of how the build system is
> structured.  As I said, I was found that ACE's Makefiles do include
> CPPFLAGS in the compiler calls. So, adding ${DEBUG_PREFIX_MAP} to
> CPPFLAGS allows the flag to be properly propagated to the compiler and
> resolves the QA issue.
>
> My thought before you asked the question was just "the problem is
> caused by the project.". Now we have detailed it and figured out why.
>
> It seems that our solution here should be CPPFLAGS:append = "
> ${DEBUG_PREFIX_MAP}". Let me know if I'm wrong or if there is a better
> way.

CPPFLAGS should be C PreProcessor options.
DEBUG_PREFIX_MAP options are not C PreProcessor options.

The theoretical solution would be to patch the ace build system to make it
pass CXXFLAGS to CXX-based compilation (as well as CPPFLAGS). That patch
most likely deserves to be upstreamed.

Since you looked at ace's makefiles, does it sound doable?

>
>
> Yoann Congal <yoann.congal@smile.fr>, 21 Haz 2025 Cmt, 16:00 tarihinde
> şunu yazdı:
>>
>>
>>
>> Le sam. 21 juin 2025 à 12:26, Alper Ak via lists.openembedded.org
<alperyasinak1=gmail.com@lists.openembedded.org> a écrit :
>>>
>>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File
/usr/lib/.debug/libACE_Compression.so.8.0.2 in package ace-dbg contains
reference to TMPDIR [buildpaths]
>>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File
/usr/lib/.debug/libACE_ETCL_Parser.so.8.0.2 in package ace-dbg contains
reference to TMPDIR [buildpaths]
>>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File
/usr/lib/.debug/libACE_ETCL.so.8.0.2 in package ace-dbg contains reference
to TMPDIR [buildpaths]
>>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File
/usr/lib/.debug/libACE.so.8.0.2 in package ace-dbg contains reference to
TMPDIR [buildpaths]
>>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File
/usr/lib/.debug/libACE_Monitor_Control.so.8.0.2 in package ace-dbg contains
reference to TMPDIR [buildpaths]
>>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File
/usr/lib/.debug/libACE_RLECompression.so.8.0.2 in package ace-dbg contains
reference to TMPDIR [buildpaths]
>>> ERROR: ace-8.0.2-r0 do_package_qa: Fatal QA errors were found, failing
task.
>>>
>>> Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
>>> ---
>>>  meta-oe/recipes-connectivity/ace/ace_8.0.2.bb | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
b/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
>>> index b730b0a86c..e62ed39d0b 100644
>>> --- a/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
>>> +++ b/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
>>> @@ -27,7 +27,7 @@ export ACE_ROOT = "${UNPACKDIR}/ACE_wrappers"
>>>  inherit pkgconfig
>>>
>>>  CXXFLAGS:append = " -fpermissive -Wnodeprecated-declarations"
>>> -CXX:append = " -ffile-prefix-map=${UNPACKDIR}= "
>>> +CXX:append = " ${DEBUG_PREFIX_MAP} -ffile-prefix-map=${UNPACKDIR}= "
>>
>>
>> Hello,
>>
>> ${DEBUG_PREFIX_MAP} is usually in CXXFLAGS (set in
poky/meta/conf/bitbake.conf)
>>
>> Do you know why it is not the case here? or why does it not work?
>>
>> Thanks!
>>
>>>
>>>  EXTRA_OEMAKE += "INSTALL_LIB=${baselib} install_rpath=0"
>>>
>>>  do_install() {
>>> --
>>> 2.43.0
>>>
>>>
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>> Links: You receive all messages sent to this group.
>>> View/Reply Online (#117996):
https://lists.openembedded.org/g/openembedded-devel/message/117996
>>> Mute This Topic: https://lists.openembedded.org/mt/113755735/4316185
>>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
yoann.congal@smile.fr]
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>
>>
>>
>> --
>> Yoann Congal
>> Smile ECS
>
Alper Ak June 23, 2025, 8:40 a.m. UTC | #4
When Yoan Cognal and I looked at the structure of the project, we saw
that CCFLAGS is used instead of CXXFLAGS to add C++ compiler flags.

https://github.com/DOCGroup/ACE_TAO/blob/master/ACE/include/makeinclude/wrapper_macros.GNU#L117

So, I will assign the value of CXXFLAGS to the CCFLAGS variable and
export CCFLAGS for use in the build environment.

I'm preparign the patch v2.

Yoann Congal <yoann.congal@smile.fr>, 22 Haz 2025 Paz, 16:00 tarihinde
şunu yazdı:
>
>
>
> Le dimanche 22 juin 2025, Alper Ak <alperyasinak1@gmail.com> a écrit :
> >> Hello,
> >> ${DEBUG_PREFIX_MAP} is usually in CXXFLAGS (set in poky/meta/conf/bitbake.conf)
> >> Do you know why it is not the case here? or why does it not work?
> >> Thanks!
> >
> > Although Yocto/BitBake sets variables like CXXFLAGS and passes them to
> > the build environment, if i'm not wrong, these flags will only affect
> > the final compiler invocation if the project's own build system
> > actually uses those variables in its Makefiles or build scripts.
> >
> > Looks like ACE doesn't use CXXFLAGS in its main Makefiles or compiler
> > calls.  Instead of it, it often uses variables like CCFLAGS, CPPFLAGS
> > or directly invokes the compiler using the CXX, without including
> > CXXFLAGS. As a result, any flags added to CXXFLAGS, such as
> > ${DEBUG_PREFIX_MAP}, don't reach the compiler and the QA buildpaths
> > issue remains unresolved.
> >
> > Appending the flag directly to CXX works because ACE always calls the
> > compiler as "$(CXX) ...", so anything added to CXX is included in
> > every compiler invocation regardless of how the build system is
> > structured.  As I said, I was found that ACE's Makefiles do include
> > CPPFLAGS in the compiler calls. So, adding ${DEBUG_PREFIX_MAP} to
> > CPPFLAGS allows the flag to be properly propagated to the compiler and
> > resolves the QA issue.
> >
> > My thought before you asked the question was just "the problem is
> > caused by the project.". Now we have detailed it and figured out why.
> >
> > It seems that our solution here should be CPPFLAGS:append = "
> > ${DEBUG_PREFIX_MAP}". Let me know if I'm wrong or if there is a better
> > way.
>
> CPPFLAGS should be C PreProcessor options.
> DEBUG_PREFIX_MAP options are not C PreProcessor options.
>
> The theoretical solution would be to patch the ace build system to make it pass CXXFLAGS to CXX-based compilation (as well as CPPFLAGS). That patch most likely deserves to be upstreamed.
>
> Since you looked at ace's makefiles, does it sound doable?
>
> >
> >
> > Yoann Congal <yoann.congal@smile.fr>, 21 Haz 2025 Cmt, 16:00 tarihinde
> > şunu yazdı:
> >>
> >>
> >>
> >> Le sam. 21 juin 2025 à 12:26, Alper Ak via lists.openembedded.org <alperyasinak1=gmail.com@lists.openembedded.org> a écrit :
> >>>
> >>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_Compression.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
> >>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_ETCL_Parser.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
> >>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_ETCL.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
> >>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
> >>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_Monitor_Control.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
> >>> ERROR: ace-8.0.2-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libACE_RLECompression.so.8.0.2 in package ace-dbg contains reference to TMPDIR [buildpaths]
> >>> ERROR: ace-8.0.2-r0 do_package_qa: Fatal QA errors were found, failing task.
> >>>
> >>> Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
> >>> ---
> >>>  meta-oe/recipes-connectivity/ace/ace_8.0.2.bb | 2 +-
> >>>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>>
> >>> diff --git a/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb b/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
> >>> index b730b0a86c..e62ed39d0b 100644
> >>> --- a/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
> >>> +++ b/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
> >>> @@ -27,7 +27,7 @@ export ACE_ROOT = "${UNPACKDIR}/ACE_wrappers"
> >>>  inherit pkgconfig
> >>>
> >>>  CXXFLAGS:append = " -fpermissive -Wnodeprecated-declarations"
> >>> -CXX:append = " -ffile-prefix-map=${UNPACKDIR}= "
> >>> +CXX:append = " ${DEBUG_PREFIX_MAP} -ffile-prefix-map=${UNPACKDIR}= "
> >>
> >>
> >> Hello,
> >>
> >> ${DEBUG_PREFIX_MAP} is usually in CXXFLAGS (set in poky/meta/conf/bitbake.conf)
> >>
> >> Do you know why it is not the case here? or why does it not work?
> >>
> >> Thanks!
> >>
> >>>
> >>>  EXTRA_OEMAKE += "INSTALL_LIB=${baselib} install_rpath=0"
> >>>
> >>>  do_install() {
> >>> --
> >>> 2.43.0
> >>>
> >>>
> >>> -=-=-=-=-=-=-=-=-=-=-=-
> >>> Links: You receive all messages sent to this group.
> >>> View/Reply Online (#117996): https://lists.openembedded.org/g/openembedded-devel/message/117996
> >>> Mute This Topic: https://lists.openembedded.org/mt/113755735/4316185
> >>> Group Owner: openembedded-devel+owner@lists.openembedded.org
> >>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [yoann.congal@smile.fr]
> >>> -=-=-=-=-=-=-=-=-=-=-=-
> >>>
> >>
> >>
> >> --
> >> Yoann Congal
> >> Smile ECS
> >
>
> --
> Yoann Congal
> Smile ECS
>
diff mbox series

Patch

diff --git a/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb b/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
index b730b0a86c..e62ed39d0b 100644
--- a/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
+++ b/meta-oe/recipes-connectivity/ace/ace_8.0.2.bb
@@ -27,7 +27,7 @@  export ACE_ROOT = "${UNPACKDIR}/ACE_wrappers"
 inherit pkgconfig
 
 CXXFLAGS:append = " -fpermissive -Wnodeprecated-declarations"
-CXX:append = " -ffile-prefix-map=${UNPACKDIR}= "
+CXX:append = " ${DEBUG_PREFIX_MAP} -ffile-prefix-map=${UNPACKDIR}= "
 EXTRA_OEMAKE += "INSTALL_LIB=${baselib} install_rpath=0"
 
 do_install() {