libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 64bit HPUX problems


From: John David Anglin
Subject: Re: 64bit HPUX problems
Date: Wed, 14 Aug 2002 19:12:55 -0400 (EDT)

> No, don't check .level.  __LP64__ states very explicitly that we're going
> to be using the 64bit data model, which is precisely what hppa64 is for.

Here is a small update to the config.guess patch to check for LP64 binaries.

Dave
-- 
J. David Anglin                                  address@hidden
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2002-08-14  John David Anglin  <address@hidden>

        * config.guess (9000/[34678]??:HP-UX:*:*): Set HP_ARCH to hppa64 if
        CC_FOR_BUILD generates LP64 binaries.

--- config.guess.orig   Mon Jan  7 17:09:42 2002
+++ config.guess        Wed Aug 14 19:09:02 2002
@@ -603,6 +603,18 @@
                    rm -f $dummy.c $dummy
                fi ;;
        esac
+       if [ "${HP_ARCH}" = "hppa2.0w" ]; then
+         # Check if the arch should be hppa2.0w or hppa64.
+         eval $set_cc_for_build
+         echo 'int main (){}' > $dummy.c
+         (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy)
+         case `/usr/bin/file $dummy` in
+         *LP64*)
+           HP_ARCH=hppa64
+           ;;
+         esac
+         rm -f $dummy.c $dummy
+       fi
        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
        exit 0 ;;
     ia64:HP-UX:*:*)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]