Skip to content

Commit

Permalink
net-snmp: fix QA Issue after LDFLAGS change
Browse files Browse the repository at this point in the history
Adding -f*-prefix-map to LDFLAGS caused the following issue:

QA Issue: netsnmp-agent.pc failed sanity test (tmpdir)

Fix by filtering out -f*-prefix-map from *.pc files.

[YOCTO #14481]

Signed-off-by: Tony Battersby <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
abattersby authored and kraj committed Jul 27, 2021
1 parent 93045c3 commit 8f6cb91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ do_install_append() {
-e 's@[^ ]*PKG_CONFIG_LIBDIR=[^ "]*@@g' \
-i ${D}${bindir}/net-snmp-config

sed -e 's@[^ ]*-ffile-prefix-map=[^ "]*@@g' \
-e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
-e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \
-i ${D}${libdir}/pkgconfig/netsnmp*.pc

# ${STAGING_DIR_HOST} is empty for native builds, and the sed command below
# will result in errors if run for native.
if [ "${STAGING_DIR_HOST}" ]; then
Expand Down

0 comments on commit 8f6cb91

Please sign in to comment.