[CMake] OS/390 patches
Magnus Sirwiƶ
sirwio at hotmail.com
Tue Jan 2 10:44:26 EST 2007
Hi,
Find attached patches to get most of CMake functionality on OS/390
mainframes.
Note 1
The curl part is not yet working.
Note 2
For some reason I had to patch away the MVS remapping of long external
names. Long names work fine for me in USS - Unix System Services.
Note 3
The patch is against CMake 2.4.3
- Magnus
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------- next part --------------
CMake Build instructions OS/390
Part 1. Download and patch cmake on a UNIX platform e.g. Linux.
Download cmake-2.4.3.tar.gz
>wget http://www.cmake.org/files/v2.4/cmake-2.4.3.tar.gz
Untar the sources
>tar -xvfz cmake-2.4.3.tar.gz
Apply the OS/390 patch
>patch < cmake-os390.patch
Tar and gzip the patched sources.
>tar -cvf cmake-2.4.3.os390.tar cmake-2.4.3
>gzip cmake-2.4.3.os390.tar
Transfer/Copy the patched sources to your OS/390 mainframe e.g. using ftp in
binary mode.
Part 2. Building cmake on OS/390
Unpack the sources
>gzip -d cmake-2.4.3.os390.tar.gz
>pax -rfcmake-2.4.3.os390.tar -o to=IBM-1047,from=ISO8859-1
Set build environment
>export _C89_OPTIONS="-Wc,xplink -Wl,xplink"
>export _CXX_OPTIONS="-Wc,xplink -Wl,xplink"
>export _CXX_CXXSUFFIX=cxx
>export CFLAGS="-D_XOPEN_SOURCE -D_ALL_SOURCE -DOS_390"
>export CXXFLAGS="-D_XOPEN_SOURCE -D_ALL_SOURCE -DOS_390"
>export CC=c89
>export CXX=c++
>export _C89_CCMODE=1
>export _CXX_CCMODE=1
Bootstrap CMake
>cd cmake-2.4.3
>./bootstrap
Disable some options not applicable on OS/390 in the CMakeCache.txt file
BUILD_CursesDialog:BOOL=OFF
CMAKE_COLOR_MAKEFILE:BOOL=OFF
CURL_TESTING:BOOL=OFF
Build CMake
>make
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake-os390.patch
Type: application/octet-stream
Size: 20345 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20070102/610604c9/cmake-os390-0001.obj
More information about the CMake
mailing list