Skip to content

Commit 923ac57

Browse files
OldManYellsAtCloudagherzan
authored andcommitted
libcamera: fix c++ flags and failed buildpaths QA check
Building libcamera from the latest version of meta-or fails the buildpaths qa check with a number of generated binaries. Looking into the logs, it seemed that the -f*-prefix-map flags were present to gcc invocations, but the used flags were quite off for g++ invocations. It seems that using the cpp_args meson option overwrites (at least most of) the CXXFLAGS set by Yocto, including the -f*-prefix-map flags. To avoid this, append the extra compile flag to the CXXFLAGS variable instead of using meson's cpp_args option. Signed-off-by: Gyorgy Sarvari <[email protected]>
1 parent 4f934c0 commit 923ac57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
PACKAGECONFIG[raspberrypi] = "-Dpipelines=rpi/vc4 -Dipas=rpi/vc4 -Dcpp_args=-Wno-unaligned-access"
1+
PACKAGECONFIG[raspberrypi] = "-Dpipelines=rpi/vc4 -Dipas=rpi/vc4"
22
PACKAGECONFIG:append:rpi = " raspberrypi"
3+
CXXFLAGS:append:rpi = " -Wno-unaligned-access "

0 commit comments

Comments
 (0)