]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
flac: Use arch independent search path
authorPaul Barker <paul@pbarker.dev>
Thu, 19 Mar 2026 16:04:43 +0000 (16:04 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Mar 2026 14:47:36 +0000 (14:47 +0000)
The value of STAGING_LIBDIR depends on baselib, which may be "lib" or
"lib64" depending on the target architecture. To avoid making
PACKAGECONFIG unnecessarily arch-dependent, we can use STAGING_DIR_HOST
as the search prefix for libogg instead.

The search prefix is necessary here, removing it completely results in
compilation errors.

Signed-off-by: Paul Barker <paul@pbarker.dev>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-multimedia/flac/flac_1.5.0.bb

index e227133ad7940f765ab36fb26e6755581aeee070..2f43b4e84b2416db175aee2cf302eede517ea30e 100644 (file)
@@ -34,7 +34,7 @@ PACKAGECONFIG ??= " \
     ogg \
 "
 PACKAGECONFIG[avx] = "--enable-avx,--disable-avx"
-PACKAGECONFIG[ogg] = "--enable-ogg --with-ogg-libraries=${STAGING_LIBDIR} --with-ogg-includes=${STAGING_INCDIR},--disable-ogg,libogg"
+PACKAGECONFIG[ogg] = "--enable-ogg --with-ogg=${STAGING_DIR_HOST},--disable-ogg,libogg"
 
 PACKAGES += "libflac libflac++"
 FILES:${PN} = "${bindir}/*"