sys-libs/newlib: build with --disable-newlib-supplied-syscalls

Switch myconf to an array at the same time to clean things up a bit.
This commit is contained in:
Mike Frysinger
2016-06-23 15:12:39 -04:00
parent 5c65817748
commit edae080476
2 changed files with 18 additions and 8 deletions

View File

@@ -53,10 +53,15 @@ src_configure() {
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}"
@@ -65,7 +70,7 @@ src_configure() {
econf \
$(use_enable unicode newlib-mb) \
$(use_enable nls) \
${myconf}
"${myconf[@]}"
}
src_compile() {

View File

@@ -53,10 +53,15 @@ src_configure() {
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}"
@@ -65,7 +70,7 @@ src_configure() {
econf \
$(use_enable unicode newlib-mb) \
$(use_enable nls) \
${myconf}
"${myconf[@]}"
}
src_compile() {