Lines 105-115
Link Here
|
105 |
$(use_enable profile) |
105 |
$(use_enable profile) |
106 |
$(use_with gd) |
106 |
$(use_with gd) |
107 |
--with-headers=$(alt_build_headers) |
107 |
--with-headers=$(alt_build_headers) |
108 |
--prefix=/usr |
108 |
--libexecdir="${EPREFIX}/usr/$(get_libdir)/misc/glibc" |
109 |
--libdir=/usr/$(get_libdir) |
|
|
110 |
--mandir=/usr/share/man |
111 |
--infodir=/usr/share/info |
112 |
--libexecdir=/usr/$(get_libdir)/misc/glibc |
113 |
--with-bugurl=http://bugs.gentoo.org/ |
109 |
--with-bugurl=http://bugs.gentoo.org/ |
114 |
--with-pkgversion="$(glibc_banner)" |
110 |
--with-pkgversion="$(glibc_banner)" |
115 |
$(use_multiarch || echo --disable-multi-arch) |
111 |
$(use_multiarch || echo --disable-multi-arch) |
Lines 130-136
Link Here
|
130 |
|
126 |
|
131 |
# There is no configure option for this and we need to export it |
127 |
# There is no configure option for this and we need to export it |
132 |
# since the glibc build will re-run configure on itself |
128 |
# since the glibc build will re-run configure on itself |
133 |
export libc_cv_slibdir=/$(get_libdir) |
129 |
export libc_cv_slibdir="${EPREFIX}/$(get_libdir)" |
134 |
|
130 |
|
135 |
# We take care of patching our binutils to use both hash styles, |
131 |
# We take care of patching our binutils to use both hash styles, |
136 |
# and many people like to force gnu hash style only, so disable |
132 |
# and many people like to force gnu hash style only, so disable |
Lines 147-155
Link Here
|
147 |
local builddir=$(builddir "$1") |
143 |
local builddir=$(builddir "$1") |
148 |
mkdir -p "${builddir}" |
144 |
mkdir -p "${builddir}" |
149 |
cd "${builddir}" |
145 |
cd "${builddir}" |
150 |
set -- "${S}"/configure "${myconf[@]}" |
146 |
ECONF_SOURCE="${S}" econf "${myconf[@]}" |
151 |
echo "$@" |
|
|
152 |
"$@" || die "failed to configure glibc" |
153 |
|
147 |
|
154 |
# ia64 static cross-compilers are a pita in so much that they |
148 |
# ia64 static cross-compilers are a pita in so much that they |
155 |
# can't produce static ELFs (as the libgcc.a is broken). so |
149 |
# can't produce static ELFs (as the libgcc.a is broken). so |
Lines 236-242
Link Here
|
236 |
--build=${CBUILD_OPT:-${CBUILD}} |
230 |
--build=${CBUILD_OPT:-${CBUILD}} |
237 |
--host=${CTARGET_OPT:-${CTARGET}} |
231 |
--host=${CTARGET_OPT:-${CTARGET}} |
238 |
--with-headers=$(alt_build_headers) |
232 |
--with-headers=$(alt_build_headers) |
239 |
--prefix=/usr |
|
|
240 |
${EXTRA_ECONF} |
233 |
${EXTRA_ECONF} |
241 |
) |
234 |
) |
242 |
|
235 |
|
Lines 248-260
Link Here
|
248 |
|
241 |
|
249 |
# Nothing is compiled here which would affect the headers for the target. |
242 |
# Nothing is compiled here which would affect the headers for the target. |
250 |
# So forcing CC/CFLAGS is sane. |
243 |
# So forcing CC/CFLAGS is sane. |
251 |
set -- "${S}"/configure "${myconf[@]}" |
|
|
252 |
echo "$@" |
253 |
CC="$(tc-getBUILD_CC)" \ |
244 |
CC="$(tc-getBUILD_CC)" \ |
254 |
CFLAGS="-O1 -pipe" \ |
245 |
CFLAGS="-O1 -pipe" \ |
255 |
CPPFLAGS="-U_FORTIFY_SOURCE" \ |
246 |
CPPFLAGS="-U_FORTIFY_SOURCE" \ |
256 |
LDFLAGS="" \ |
247 |
LDFLAGS="" \ |
257 |
"$@" || die "failed to configure glibc" |
248 |
ECONF_SOURCE="${S}" econf "${myconf[@]}" |
258 |
} |
249 |
} |
259 |
|
250 |
|
260 |
toolchain-glibc_src_configure() { |
251 |
toolchain-glibc_src_configure() { |