@@ -35,6 +35,13 @@ umask 022
35
35
36
36
exec < /dev/null
37
37
38
+
39
+ # Added for Raspberry Pi
40
+ LIBRARY_PATH=/usr/lib/$( gcc -print-multiarch)
41
+ CPATH=/usr/include/$( gcc -print-multiarch)
42
+ export LIBRARY_PATH CPATH
43
+
44
+
38
45
script_path=` cd $( dirname $0 ) && pwd -P`
39
46
. $script_path /build-common.sh
40
47
@@ -89,8 +96,8 @@ echo Task [I-1] /$HOST_NATIVE/gmp/
89
96
rm -rf $BUILDDIR_NATIVE /gmp && mkdir -p $BUILDDIR_NATIVE /gmp
90
97
pushd $BUILDDIR_NATIVE /gmp
91
98
92
- CPPFLAGS= " -fexceptions " $SRCDIR / $GMP / configure -- build= $BUILD \
93
- --host= $HOST_NATIVE \
99
+ # for Raspberry Pi, let configure find the build and host settings
100
+ CPPFLAGS= " -fexceptions " $SRCDIR / $GMP /configure \
94
101
--prefix=$BUILDDIR_NATIVE /host-libs/usr \
95
102
--enable-cxx \
96
103
--disable-shared \
@@ -105,8 +112,8 @@ echo Task [I-2] /$HOST_NATIVE/mpfr/
105
112
rm -rf $BUILDDIR_NATIVE /mpfr && mkdir -p $BUILDDIR_NATIVE /mpfr
106
113
pushd $BUILDDIR_NATIVE /mpfr
107
114
108
- $SRCDIR / $MPFR / configure -- build= $BUILD \
109
- --host= $HOST_NATIVE \
115
+ # for Raspberry Pi, let configure find the build and host settings
116
+ $SRCDIR / $MPFR /configure \
110
117
--target=$TARGET \
111
118
--prefix=$BUILDDIR_NATIVE /host-libs/usr \
112
119
--disable-shared \
@@ -122,8 +129,8 @@ echo Task [I-3] /$HOST_NATIVE/mpc/
122
129
rm -rf $BUILDDIR_NATIVE /mpc && mkdir -p $BUILDDIR_NATIVE /mpc
123
130
pushd $BUILDDIR_NATIVE /mpc
124
131
125
- $SRCDIR / $MPC / configure -- build= $BUILD \
126
- --host= $HOST_NATIVE \
132
+ # for Raspberry Pi, let configure find the build and host settings
133
+ $SRCDIR / $MPC /configure \
127
134
--target=$TARGET \
128
135
--prefix=$BUILDDIR_NATIVE /host-libs/usr \
129
136
--disable-shared \
@@ -140,8 +147,8 @@ echo Task [I-4] /$HOST_NATIVE/isl/
140
147
rm -rf $BUILDDIR_NATIVE /isl && mkdir -p $BUILDDIR_NATIVE /isl
141
148
pushd $BUILDDIR_NATIVE /isl
142
149
143
- $SRCDIR / $ISL / configure -- build= $BUILD \
144
- --host= $HOST_NATIVE \
150
+ # for Raspberry Pi, let configure find the build and host settings
151
+ $SRCDIR / $ISL /configure \
145
152
--target=$TARGET \
146
153
--prefix=$BUILDDIR_NATIVE /host-libs/usr \
147
154
--disable-shared \
@@ -157,8 +164,8 @@ echo Task [I-5] /$HOST_NATIVE/cloog/
157
164
rm -rf $BUILDDIR_NATIVE /cloog && mkdir -p $BUILDDIR_NATIVE /cloog
158
165
pushd $BUILDDIR_NATIVE /cloog
159
166
160
- $SRCDIR / $CLOOG / configure -- build= $BUILD \
161
- --host= $HOST_NATIVE \
167
+ # for Raspberry Pi, let configure find the build and host settings
168
+ $SRCDIR / $CLOOG /configure \
162
169
--target=$TARGET \
163
170
--prefix=$BUILDDIR_NATIVE /host-libs/usr \
164
171
--disable-shared \
@@ -177,8 +184,8 @@ echo Task [I-6] /$HOST_NATIVE/libelf/
177
184
rm -rf $BUILDDIR_NATIVE /libelf && mkdir -p $BUILDDIR_NATIVE /libelf
178
185
pushd $BUILDDIR_NATIVE /libelf
179
186
180
- $SRCDIR / $LIBELF / configure -- build= $BUILD \
181
- --host= $HOST_NATIVE \
187
+ # for Raspberry Pi, let configure find the build and host settings
188
+ $SRCDIR / $LIBELF /configure \
182
189
--target=$TARGET \
183
190
--prefix=$BUILDDIR_NATIVE /host-libs/usr \
184
191
--disable-shared \
@@ -193,8 +200,8 @@ echo Task [I-7] /$HOST_NATIVE/expat/
193
200
rm -rf $BUILDDIR_NATIVE /expat && mkdir -p $BUILDDIR_NATIVE /expat
194
201
pushd $BUILDDIR_NATIVE /expat
195
202
196
- $SRCDIR / $EXPAT / configure -- build= $BUILD \
197
- --host= $HOST_NATIVE \
203
+ # for Raspberry Pi, let configure find the build and host settings
204
+ $SRCDIR / $EXPAT /configure \
198
205
--target=$TARGET \
199
206
--prefix=$BUILDDIR_NATIVE /host-libs/usr \
200
207
--disable-shared \
@@ -204,6 +211,11 @@ make -j$JOBS
204
211
make install
205
212
popd
206
213
214
+
215
+ # for Raspberry Pi, always skip mingw32
216
+ exit 0
217
+
218
+
207
219
# skip building mingw32 toolchain if "--skip_mingw32" specified
208
220
if [ " x$skip_mingw32 " == " xyes" ] ; then
209
221
exit 0
0 commit comments