unset LDFLAGS
CHOST=${CTARGET} strip-unsupported-flags
- local myconf=""
+ local myconf=(
+ # Disable legacy syscall stub code in newlib. These have been
+ # moved to libgloss for a long time now, so the code in newlib
+ # itself just gets in the way.
+ --disable-newlib-supplied-syscalls
+ )
[[ ${CTARGET} == "spu" ]] \
- && myconf="${myconf} --disable-newlib-multithread" \
- || myconf="${myconf} $(use_enable threads newlib-multithread)"
+ && myconf+=( --disable-newlib-multithread ) \
+ || myconf+=( $(use_enable threads newlib-multithread) )
mkdir -p "${NEWLIBBUILD}"
cd "${NEWLIBBUILD}"
econf \
$(use_enable unicode newlib-mb) \
$(use_enable nls) \
- ${myconf}
+ "${myconf[@]}"
}
src_compile() {
unset LDFLAGS
CHOST=${CTARGET} strip-unsupported-flags
- local myconf=""
+ local myconf=(
+ # Disable legacy syscall stub code in newlib. These have been
+ # moved to libgloss for a long time now, so the code in newlib
+ # itself just gets in the way.
+ --disable-newlib-supplied-syscalls
+ )
[[ ${CTARGET} == "spu" ]] \
- && myconf="${myconf} --disable-newlib-multithread" \
- || myconf="${myconf} $(use_enable threads newlib-multithread)"
+ && myconf+=( --disable-newlib-multithread ) \
+ || myconf+=( $(use_enable threads newlib-multithread) )
mkdir -p "${NEWLIBBUILD}"
cd "${NEWLIBBUILD}"
econf \
$(use_enable unicode newlib-mb) \
$(use_enable nls) \
- ${myconf}
+ "${myconf[@]}"
}
src_compile() {