Skip to content

Commit 81d1aa8

Browse files
committed
devel::gcc: add GCC_EXTRA_OPTIONS variable
Sometimes special options need to be passed to gcc configure. Provide a variable for such cases.
1 parent d81c9bc commit 81d1aa8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

recipes/devel/gcc.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ Config:
3939
values, possibly consisting of a single value. The permissible
4040
values depend on the target CPU architecture. If unset or empty,
4141
multilibs are disabled.
42+
GCC_EXTRA_OPTIONS:
43+
help: >
44+
Additional options that are passed to gcc configure. May be used to
45+
pass options that are not provided by the other standard GCC_
46+
knobs.
4247
4348
checkoutSCM:
4449
scm: url
@@ -54,7 +59,7 @@ checkoutScript: |
5459
5560
buildVars: [AUTOCONF_BUILD, AUTOCONF_HOST, AUTOCONF_TARGET, GCC_TARGET_ABI,
5661
GCC_TARGET_ARCH, GCC_TARGET_FLOAT_ABI, GCC_TARGET_FPU,
57-
GCC_MULTILIB]
62+
GCC_MULTILIB, GCC_EXTRA_OPTIONS]
5863
buildTools: [m4]
5964
buildScript: |
6065
GCC_SRC=$1
@@ -74,6 +79,7 @@ buildScript: |
7479
${GCC_TARGET_FPU:+--with-fpu=$GCC_TARGET_FPU} \
7580
${GCC_TARGET_FLOAT_ABI:+--with-float=$GCC_TARGET_FLOAT_ABI} \
7681
--enable-initfini-array \
82+
${GCC_EXTRA_OPTIONS:-} \
7783
"${@}" \
7884
--disable-gtk-doc \
7985
--disable-gtk-doc-html \

0 commit comments

Comments
 (0)