Mathieu Malaterre wrote:
>> /opt/ibmcmp/vacpp/9.0/bin/cc   -DHAVE_GETHOSTBYNAME_R_5   -o 
>> CMakeFiles/cmTryCompileExec.dir/CurlTests.c.o   -c 
>> "/home/mmalater/Dashboards/My 
>> Tests/CMakeXLC/Utilities/cmcurl/CMake/CurlTests.c"
> "/home/mmalater/Dashboards/My
> Tests/CMakeXLC/Utilities/cmcurl/CMake/CurlTests.c", line 247.16:
> 1506-098 (E) Missing argument(s).
>> echo $?
> 0
[snip]
> This seems quite a common things to always add -qhalt=e in all
> configure script I found. Looking at what curl does with this compiler
> this leads to the following local changes for me:

I've factored the XL compiler flags out of AIX.cmake into per-compiler
files, and also added the flags you propose.  See commits below.

-Brad


Split XL compiler information files
/cvsroot/CMake/CMake/Modules/Compiler/XL-C.cmake,v  <--  
Modules/Compiler/XL-C.cmake
new revision: 1.2; previous revision: 1.1
/cvsroot/CMake/CMake/Modules/Compiler/XL-CXX.cmake,v  <--  
Modules/Compiler/XL-CXX.cmake
new revision: 1.2; previous revision: 1.1
/cvsroot/CMake/CMake/Modules/Compiler/XL-Fortran.cmake,v  <--  
Modules/Compiler/XL-Fortran.cmake
new revision: 1.2; previous revision: 1.1
/cvsroot/CMake/CMake/Modules/Platform/AIX-VisualAge-C.cmake,v  <--  
Modules/Platform/AIX-VisualAge-C.cmake
initial revision: 1.1
/cvsroot/CMake/CMake/Modules/Platform/AIX-VisualAge-CXX.cmake,v  <--  
Modules/Platform/AIX-VisualAge-CXX.cmake
initial revision: 1.1
/cvsroot/CMake/CMake/Modules/Platform/AIX-XL-C.cmake,v  <--  
Modules/Platform/AIX-XL-C.cmake
initial revision: 1.1
/cvsroot/CMake/CMake/Modules/Platform/AIX-XL-CXX.cmake,v  <--  
Modules/Platform/AIX-XL-CXX.cmake
initial revision: 1.1
/cvsroot/CMake/CMake/Modules/Platform/AIX-XL-Fortran.cmake,v  <--  
Modules/Platform/AIX-XL-Fortran.cmake
initial revision: 1.1
/cvsroot/CMake/CMake/Modules/Platform/AIX.cmake,v  <--  
Modules/Platform/AIX.cmake
new revision: 1.22; previous revision: 1.21
/cvsroot/CMake/CMake/Modules/Platform/Darwin-VisualAge-C.cmake,v  <--  
Modules/Platform/Darwin-VisualAge-C.cmake
initial revision: 1.1
/cvsroot/CMake/CMake/Modules/Platform/Darwin-VisualAge-CXX.cmake,v  <--  
Modules/Platform/Darwin-VisualAge-CXX.cmake
initial revision: 1.1
/cvsroot/CMake/CMake/Modules/Platform/Darwin-XL-C.cmake,v  <--  
Modules/Platform/Darwin-XL-C.cmake
initial revision: 1.1
/cvsroot/CMake/CMake/Modules/Platform/Darwin-XL-CXX.cmake,v  <--  
Modules/Platform/Darwin-XL-CXX.cmake
initial revision: 1.1
/cvsroot/CMake/CMake/Modules/Platform/Darwin-xlc.cmake,v  <--  
Modules/Platform/Darwin-xlc.cmake
new revision: delete; previous revision: 1.3

Add initial XL C compiler flags for safer builds
/cvsroot/CMake/CMake/Modules/Compiler/XL-C.cmake,v  <--  
Modules/Compiler/XL-C.cmake
new revision: 1.3; previous revision: 1.2
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to