mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[svn-r7280] Purpose:
Bug Fix Description: In a fit of what can only be described as brain-damagedness, on blue, frost, etc. (AIX, really), when you include the zlib.h header file and are specifying that the compiler accept ANSI C, zlib.h undefines the "const" keyword if you don't have the variable STDC defined...*boggle*. Solution: Included a -DSTDC as a commandline flag for the compiler. Platforms tested: Snow (AIX 5.0) Only affects AIX machines, so no h5committest needed. Misc. update:
This commit is contained in:
parent
69bc830f8a
commit
2f7273dc73
@ -8,10 +8,10 @@
|
|||||||
# Use -D_LARGE_FILES by default to support large file size.
|
# Use -D_LARGE_FILES by default to support large file size.
|
||||||
if test "X-" = "X-$CC"; then
|
if test "X-" = "X-$CC"; then
|
||||||
if test "X-$enable_parallel" = "X-yes"; then
|
if test "X-$enable_parallel" = "X-yes"; then
|
||||||
CC='mpcc_r -qlanglvl=ansi -D_LARGE_FILES'
|
CC='mpcc_r -qlanglvl=ansi -D_LARGE_FILES -DSTDC'
|
||||||
CC_BASENAME=mpcc_r
|
CC_BASENAME=mpcc_r
|
||||||
else
|
else
|
||||||
CC='xlc -qlanglvl=ansi -D_LARGE_FILES'
|
CC='xlc -qlanglvl=ansi -D_LARGE_FILES -DSTDC'
|
||||||
CC_BASENAME=xlc
|
CC_BASENAME=xlc
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user