gcc: Set --with-newlib when using newlib-nano

This commit is contained in:
adisbladis 2022-07-20 16:39:49 +08:00
parent d5fb429c7d
commit facbbae4b7

View File

@ -97,7 +97,7 @@ let
# In uclibc cases, libgomp needs an additional '-ldl'
# and as I don't know how to pass it, I disable libgomp.
"--disable-libgomp"
] ++ lib.optional (targetPlatform.libc == "newlib") "--with-newlib"
] ++ lib.optional (targetPlatform.libc == "newlib" || targetPlatform.libc == "newlib-nano") "--with-newlib"
++ lib.optional (targetPlatform.libc == "avrlibc") "--with-avrlibc"
);