mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-12 06:10:10 +00:00
3e239be647
This patch makes non-ex-ports architectures set base_machine and machine based on the original configured machine value in preconfigure fragments, like ex-ports architectures, rather than in the toplevel configure.ac. Tested x86 that the disassembly of installed shared libraries is unchanged by the patch. * configure.ac (base_machine): Do not set specially for particular machines here. * configure: Regenerated. * sysdeps/powerpc/preconfigure: Move machine and base_machine settings from configure.ac. * sysdeps/i386/preconfigure: New file. * sysdeps/s390/preconfigure: Likewise. * sysdeps/sh/preconfigure: Likewise. * sysdeps/sparc/preconfigure: Likewise.
18 lines
437 B
Plaintext
18 lines
437 B
Plaintext
# preconfigure fragment for powerpc.
|
|
|
|
case "$machine" in
|
|
powerpc64*)
|
|
base_machine=powerpc machine=powerpc/powerpc64
|
|
;;
|
|
powerpc*)
|
|
# Check for e500.
|
|
$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null > conftest.i
|
|
if grep -q __NO_FPRS__ conftest.i && ! grep -q _SOFT_FLOAT conftest.i; then
|
|
base_machine=powerpc machine=powerpc/powerpc32/e500
|
|
else
|
|
base_machine=powerpc machine=powerpc/powerpc32
|
|
fi
|
|
rm -f conftest.i
|
|
;;
|
|
esac
|