This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
>> You would either create or modify one of the .dat files and add
>> a line withi:
>>
>> GLIBC_EXTRA_CONFIG="--enable-add-ons=coldfire"
>>
>> which will be picked up by the main script when configuring glibc.
>
>Well, maybe, but that probably clashes with --enable-add-ons=linuxthreads.
>And then there's the issue of downloading and unpacking the
>addon. I think the NPTL support patch dealt with all that,
>hopefully it'll be a good model.
I looked over the nptl patch, and it uses a hokey
"GLIBC_ADDON_LINUXTHREADS=1; GLIBC_ADDON_NPTL=1". I'm trying a
slightly different tack for my need with just:
# if an addon port is needed, use it
if test -n "${GLIBC_ADDON_PORT}"; then
echo "GLIBC_ADDON_PORT set, adding it to GLIBC_ADDON_OPTIONS"
GLIBC_ADDON_OPTIONS="${GLIBC_ADDON_OPTIONS}${GLIBC_ADDON_PORT},"
fi
so I end up with a configure line(for build-glibc) that looks like:
BUILD_CC=gcc \
CC='m68k-linux-gcc -mcfv4e' \
CFLAGS='-mcfv4e -O2' \
LDFLAGS=+-mcfv4e \
enable_debug_configure=y \
AR=m68k-linux-ar \
RANLIB=m68k-linux-ranlib \
/home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/glibc-2.3.5/configure --prefix= --build=i686-pc-linux-gnu --host=coldfire-linux --target=coldfire-linux --without-cvs --disable-profile --without-gd --without-tls --without-__thread --enable-shared --enable-add-ons=linuxthreads,ports, --with-headers=/opt/logicpd/ColdFire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux/include
Which has '--enable-add-ons=linuxthreads,ports,' (I'll have to see
about getting rid of the trailing ',') and also adds
'enable_debug_configure=y' so I can see where the configure goes
south.
This is just a hack to get me started, but figured it might be a
slightly cleaner approach than that used by the NPTL patch.
I think for glibc-2.3.5 and on, you'll want to download and install
glibc-ports-2.3.5...
--
Peter Barada
peter@the-baradas.com
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |