| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3fbf320 commit 539c662
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -297,7 +297,7 @@ extern "C" { | |||
| 297 | 297 | * This isn't reliable. See Py_OVERFLOWED comments. | |
| 298 | 298 | * X is evaluated more than once. | |
| 299 | 299 | */ | |
| 300 | - #if defined(__FreeBSD__) || defined(__OpenBSD__) | ||
| 300 | + #if defined(__FreeBSD__) || defined(__OpenBSD__) || (defined(__hpux) && defined(__ia64)) | ||
| 301 | 301 | #define _Py_SET_EDOM_FOR_NAN(X) if (isnan(X)) errno = EDOM; | |
| 302 | 302 | #else | |
| 303 | 303 | #define _Py_SET_EDOM_FOR_NAN(X) ; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,6 +12,9 @@ What's New in Python 2.5 alpha 1? | |||
| 12 | 12 | Core and builtins | |
| 13 | 13 | ----------------- | |
| 14 | 14 | ||
| 15 | + - Changes donated by Elemental Security to make it work on HP-UX 11 on | ||
| 16 | + Itanium2 with HP's 64-bit compiler (SF patch #1225212). | ||
| 17 | + | ||
| 15 | 18 | - Disallow keyword arguments for type constructors that don't use them | |
| 16 | 19 | (fixes bug #1119418). | |
| 17 | 20 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,6 +45,20 @@ | |||
| 45 | 45 | #define SUN_LWP | |
| 46 | 46 | #endif | |
| 47 | 47 | ||
| 48 | + /* Check if we're running on HP-UX and _SC_THREADS is defined. If so, then | ||
| 49 | + enough of the Posix threads package is implimented to support python | ||
| 50 | + threads. | ||
| 51 | + | ||
| 52 | + This is valid for HP-UX 11.23 running on an ia64 system. If needed, add | ||
| 53 | + a check of __ia64 to verify that we're running on a ia64 system instead | ||
| 54 | + of a pa-risc system. | ||
| 55 | + */ | ||
| 56 | + #ifdef __hpux | ||
| 57 | + #ifdef _SC_THREADS | ||
| 58 | + #define _POSIX_THREADS | ||
| 59 | + #endif | ||
| 60 | + #endif | ||
| 61 | + | ||
| 48 | 62 | #endif /* _POSIX_THREADS */ | |
| 49 | 63 | ||
| 50 | 64 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -368,7 +368,25 @@ HP-UX ia64: When building on the ia64 (Itanium) platform using HP's | |||
| 368 | 368 | compiler, some experience has shown that the compiler's | |
| 369 | 369 | optimiser produces a completely broken version of python | |
| 370 | 370 | (see http://www.python.org/sf/814976). To work around this, | |
| 371 | - edit the Makefile and remove -O from the OPT line. | ||
| 371 | + edit the Makefile and remove -O from the OPT line. (This is | ||
| 372 | + old information; with the latest compiler this problem does | ||
| 373 | + not occur.) | ||
| 374 | + | ||
| 375 | + To build a 64-bit executable on an Itanium 2 system using HP's | ||
| 376 | + compiler, use these environment variables: | ||
| 377 | + | ||
| 378 | + CC=cc | ||
| 379 | + CXX=aCC | ||
| 380 | + BASECFLAGS="+DD64" | ||
| 381 | + LDFLAGS="+DD64 -lxnet" | ||
| 382 | + | ||
| 383 | + and call configure as: | ||
| 384 | + | ||
| 385 | + ./configure --without-gcc | ||
| 386 | + | ||
| 387 | + then *unset* the environment variables again before running | ||
| 388 | + make. (At least one of these flags causes the build to fail | ||
| 389 | + if it remains set.) | ||
| 372 | 390 | ||
| 373 | 391 | HP PA-RISC 2.0: A recent bug report (http://www.python.org/sf/546117) | |
| 374 | 392 | suggests that the C compiler in this 64-bit system has bugs | |
| Back | FazBrowse Home | New Git URL |
0 commit comments