This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

config.guess fails on HP-UX


GCC version 2.95.1
system type hppa2.0 hpux10.20

config.guess returns "-hp-hpux10.20" instead of "hppa2.0-hp-hpux10.20".
This is because the C program dummy generated temporarily by
config.guess doesn't work when a certain macro isn't defined for the
compilation. The bug can be fixed by changing line 409 of config.guess:

        (${CC-cc} dummy.c -o dummy 2>/dev/null ) && HP_ARCH=`./dummy`

to

        (${CC-cc} -D_HPUX_SOURCE dummy.c -o dummy 2>/dev/null ) &&
HP_ARCH=`./dummy`


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]