From: Richard Purdie Date: Fri, 6 Jun 2025 16:45:29 +0000 (+0100) Subject: ghostscript: Use TARGET_CFLAGS to pass compiler options X-Git-Tag: uninative-4.8~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2091ebf845004040a6227d18cfa6bb508d1b9c9f;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git ghostscript: Use TARGET_CFLAGS to pass compiler options Passing compiler options via CC is error prone when we allow toolchain selection. Use TARGET_CFLAGS instead. Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb b/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb index 8f132d55c69..cd7087721f1 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_10.05.1.bb @@ -48,7 +48,7 @@ EXTRA_OECONF:append:mipsarcho32 = " --with-large_color_index=0" EXTRA_OECONF:append:armv7a = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}" EXTRA_OECONF:append:armv7ve = "${@bb.utils.contains('TUNE_FEATURES','neon','',' --disable-neon',d)}" -CC += "-std=gnu17" +TARGET_CFLAGS += "-std=gnu17" # Uses autoconf but not automake, can't do out-of-tree inherit autotools-brokensep pkgconfig