From 73b756fe338375160353fd9c00f36aaa3f6cbf75 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 6 Mar 2004 21:26:31 -0500 Subject: [svn-r8235] Purpose: Bug fix Description: Fix build on sparc64 platform for FreeBSD by modifying the config/gnu-flags to not insert '-march=i686' on non-Intel platforms. (This change allows HDF5 to run correctly on all five of the main FreeBSD platforms... :-) Platforms tested: FreeBSD 4.9 (sleipnir) h5committest not run since it's a FreeBSD-specific fix. --- config/gnu-flags | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/gnu-flags b/config/gnu-flags index 28ff267..307dcff 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -91,11 +91,11 @@ fi # Architecture-specific flags case "$host_os-$host_cpu" in - # FreeBSD sets the information from "hostname -m" to the general machine + # FreeBSD sets the information from "uname -m" to the general machine # architecture, not the specific CPU for the machine, so even our # Pentium II Xeon server is set to "i386". Once we know we are on a FreeBSD # machine, use the "sysctl" command to get the CPU hardware model. - freebsd*) + freebsd*-i386) host_cpu_model=`sysctl -n hw.model` case "$host_cpu_model" in # Hmm.. this might not catch Celerons, but it won't hurt them either... -- cgit v0.12