1 |
commit: edae0804767dbb7a2d5f71e847de473a9cff8638 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 23 19:12:39 2016 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 23 19:14:07 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edae0804 |
7 |
|
8 |
sys-libs/newlib: build with --disable-newlib-supplied-syscalls |
9 |
|
10 |
Switch myconf to an array at the same time to clean things up a bit. |
11 |
|
12 |
sys-libs/newlib/newlib-2.4.0.ebuild | 13 +++++++++---- |
13 |
sys-libs/newlib/newlib-9999.ebuild | 13 +++++++++---- |
14 |
2 files changed, 18 insertions(+), 8 deletions(-) |
15 |
|
16 |
diff --git a/sys-libs/newlib/newlib-2.4.0.ebuild b/sys-libs/newlib/newlib-2.4.0.ebuild |
17 |
index 12999bc..4282764 100644 |
18 |
--- a/sys-libs/newlib/newlib-2.4.0.ebuild |
19 |
+++ b/sys-libs/newlib/newlib-2.4.0.ebuild |
20 |
@@ -53,10 +53,15 @@ src_configure() { |
21 |
unset LDFLAGS |
22 |
CHOST=${CTARGET} strip-unsupported-flags |
23 |
|
24 |
- local myconf="" |
25 |
+ local myconf=( |
26 |
+ # Disable legacy syscall stub code in newlib. These have been |
27 |
+ # moved to libgloss for a long time now, so the code in newlib |
28 |
+ # itself just gets in the way. |
29 |
+ --disable-newlib-supplied-syscalls |
30 |
+ ) |
31 |
[[ ${CTARGET} == "spu" ]] \ |
32 |
- && myconf="${myconf} --disable-newlib-multithread" \ |
33 |
- || myconf="${myconf} $(use_enable threads newlib-multithread)" |
34 |
+ && myconf+=( --disable-newlib-multithread ) \ |
35 |
+ || myconf+=( $(use_enable threads newlib-multithread) ) |
36 |
|
37 |
mkdir -p "${NEWLIBBUILD}" |
38 |
cd "${NEWLIBBUILD}" |
39 |
@@ -65,7 +70,7 @@ src_configure() { |
40 |
econf \ |
41 |
$(use_enable unicode newlib-mb) \ |
42 |
$(use_enable nls) \ |
43 |
- ${myconf} |
44 |
+ "${myconf[@]}" |
45 |
} |
46 |
|
47 |
src_compile() { |
48 |
|
49 |
diff --git a/sys-libs/newlib/newlib-9999.ebuild b/sys-libs/newlib/newlib-9999.ebuild |
50 |
index 69e50b0..9ef5293 100644 |
51 |
--- a/sys-libs/newlib/newlib-9999.ebuild |
52 |
+++ b/sys-libs/newlib/newlib-9999.ebuild |
53 |
@@ -53,10 +53,15 @@ src_configure() { |
54 |
unset LDFLAGS |
55 |
CHOST=${CTARGET} strip-unsupported-flags |
56 |
|
57 |
- local myconf="" |
58 |
+ local myconf=( |
59 |
+ # Disable legacy syscall stub code in newlib. These have been |
60 |
+ # moved to libgloss for a long time now, so the code in newlib |
61 |
+ # itself just gets in the way. |
62 |
+ --disable-newlib-supplied-syscalls |
63 |
+ ) |
64 |
[[ ${CTARGET} == "spu" ]] \ |
65 |
- && myconf="${myconf} --disable-newlib-multithread" \ |
66 |
- || myconf="${myconf} $(use_enable threads newlib-multithread)" |
67 |
+ && myconf+=( --disable-newlib-multithread ) \ |
68 |
+ || myconf+=( $(use_enable threads newlib-multithread) ) |
69 |
|
70 |
mkdir -p "${NEWLIBBUILD}" |
71 |
cd "${NEWLIBBUILD}" |
72 |
@@ -65,7 +70,7 @@ src_configure() { |
73 |
econf \ |
74 |
$(use_enable unicode newlib-mb) \ |
75 |
$(use_enable nls) \ |
76 |
- ${myconf} |
77 |
+ "${myconf[@]}" |
78 |
} |
79 |
|
80 |
src_compile() { |