242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
|
if ! echo " ${require[*]} " | grep ' linux-headers[/@: ]' >/dev/null; then
CC="${CC} -isystem ${linuxheadersdir}/include"
fi
BUILD_CC="${CC}"
HOST_CC="${CC}"
LDFLAGS="${LDFLAGS} -L${glibcdir}/lib -Wl,--rpath,${glibcdir}/lib -Wl,--dynamic-linker,${dynlinker}"
PKG_CONFIG_LIBDIR="${glibcdir}/lib/pkgconfig"
export CC BUILD_CC HOST_CC LDFLAGS PKG_CONFIG_LIBDIR
}
function configure() {
configure_gcc
./configure --prefix="${prefix}" --sysconfdir="${prefix}/etc" --libdir="${prefix}/lib" --localstatedir=/var "${configure_extra[@]}"
}
|
>
>
>
>
>
>
|
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
|
if ! echo " ${require[*]} " | grep ' linux-headers[/@: ]' >/dev/null; then
CC="${CC} -isystem ${linuxheadersdir}/include"
fi
BUILD_CC="${CC}"
HOST_CC="${CC}"
LDFLAGS="${LDFLAGS} -L${glibcdir}/lib -Wl,--rpath,${glibcdir}/lib -Wl,--dynamic-linker,${dynlinker}"
if [ -z "${appfs_build_no_default_symver}" ]; then
LDFLAGS="${LDFLAGS} -Wl,--default-symver"
fi
PKG_CONFIG_LIBDIR="${glibcdir}/lib/pkgconfig"
export CC BUILD_CC HOST_CC LDFLAGS PKG_CONFIG_LIBDIR
}
function configure() {
configure_gcc
./configure --prefix="${prefix}" --sysconfdir="${prefix}/etc" --libdir="${prefix}/lib" --localstatedir=/var "${configure_extra[@]}"
}
|