]> code.ossystems Code Review - meta-freescale.git/commit
dce/qbman_userspace: fix build issue with gcc10
authorTing Liu <ting.liu@nxp.com>
Tue, 15 Dec 2020 04:36:17 +0000 (10:06 +0530)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 22 Feb 2021 16:06:56 +0000 (13:06 -0300)
commitef0a000bb32e27990192ac3e365404a9b9109556
tree109a23ab7561342ff71fce34eb7b8bae8cb3bea3
parent9a3b55d15398927af08b148d8c667904beffc7b3
dce/qbman_userspace: fix build issue with gcc10

Fix multiple definition of 'qman_version' error:
| .../dce/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: libqbman.a(qbman_portal.o):/usr/src/debug/dce/git-r0/git/lib/qbman_userspace/driver/qbman_portal.h:36: multiple definition of `qman_version'; libqbman.a(qbman_debug.o):/usr/src/debug/dce/git-r0/git/lib/qbman_userspace/driver/qbman_portal.h:36: first defined here
| collect2: error: ld returned 1 exit status
| Makefile:41: recipe for target 'bin/dce-api-perf-test' failed
| make: *** [bin/dce-api-perf-test] Error 1

Signed-off-by: Ting Liu <ting.liu@nxp.com>
recipes-dpaa2/dce/dce_git.bb