diff options
author | Brent Cook <busterb@gmail.com> | 2021-12-04 04:05:04 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2021-12-04 04:05:04 -0600 |
commit | 88c93260dae85a14fe0ecc13bf78cb48c301b3ec (patch) | |
tree | 6e1a09ede37ce50d64e8193adb77f1f4d4a61a6f | |
parent | c211d97ecb351254a1020f2a9eecd47e65ad5484 (diff) | |
parent | 2f3066df94e794dc91a1ddb6425755ed0d8c9dd0 (diff) | |
download | portable-88c93260dae85a14fe0ecc13bf78cb48c301b3ec.tar.gz portable-88c93260dae85a14fe0ecc13bf78cb48c301b3ec.tar.bz2 portable-88c93260dae85a14fe0ecc13bf78cb48c301b3ec.zip |
Land #700, Set IA-64 flags only on HP-UX IA-64
-rw-r--r-- | m4/check-os-options.m4 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/m4/check-os-options.m4 b/m4/check-os-options.m4 index 644bf71..8080dcb 100644 --- a/m4/check-os-options.m4 +++ b/m4/check-os-options.m4 | |||
@@ -68,10 +68,15 @@ char buf[1]; getentropy(buf, 1); | |||
68 | ;; | 68 | ;; |
69 | *hpux*) | 69 | *hpux*) |
70 | HOST_OS=hpux; | 70 | HOST_OS=hpux; |
71 | if test "`echo $CC | cut -d ' ' -f 1`" = "gcc" ; then | 71 | if test "`echo $host_os | cut -c 1-4`" = "ia64" ; then |
72 | CFLAGS="$CFLAGS -mlp64" | 72 | if test "`echo $CC | cut -d ' ' -f 1`" = "gcc" ; then |
73 | else | 73 | CFLAGS="$CFLAGS -mlp64" |
74 | CFLAGS="-g -O2 +DD64 +Otype_safety=off $USER_CFLAGS" | 74 | else |
75 | CFLAGS="+DD64" | ||
76 | fi | ||
77 | fi | ||
78 | if ! test "`echo $CC | cut -d ' ' -f 1`" = "gcc" ; then | ||
79 | CFLAGS="-g -O2 +Otype_safety=off $CFLAGS $USER_CFLAGS" | ||
75 | fi | 80 | fi |
76 | CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D__STRICT_ALIGNMENT" | 81 | CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D__STRICT_ALIGNMENT" |
77 | ;; | 82 | ;; |