sys-libs/newlib: build with --disable-newlib-supplied-syscalls
authorMike Frysinger <vapier@gentoo.org>
Thu, 23 Jun 2016 19:12:39 +0000 (15:12 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 23 Jun 2016 19:14:07 +0000 (15:14 -0400)
Switch myconf to an array at the same time to clean things up a bit.

sys-libs/newlib/newlib-2.4.0.ebuild
sys-libs/newlib/newlib-9999.ebuild

index 12999bcabf4e8c6a74b00203e68f45f119885f5f..428276464d38e15eb9a9282ea87bb5c7f0eab364 100644 (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() {
index 69e50b0a9234c0061affb55b8faf374d9a989f8c..9ef5293db416d6022d23e582c3bb8f997bc48d34 100644 (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() {