m3bld built on System X!
I've built m3bld on System X! It's actually kinda tricky.
1) Make the following changes to the build script:
sysx1:~/lmarr/cmaq/scripts/build jlinford$ diff bldit.m3bld.xlf bldit.m3bld
27,30c27,30
< # if ($BLD_OS != 'Linux') then
< # echo " $BLD_OS -> wrong bldit script for host\!"
< # exit 1
< # endif
---
> if ($BLD_OS != 'Linux') then
> echo " $BLD_OS -> wrong bldit script for host\!"
> exit 1
> endif
43,44c43,44
< set CC = /usr/bin/cc
< set CFLAGS = "-D__unix__"
---
> set CC = /usr/bin/gcc
> set CFLAGS = " "
2) Run the script to get the initial source. The build will fail.
3) Change the script again:
sysx1:~/lmarr/cmaq/scripts/build jlinford$ diff bldit.m3bld.xlf bldit.m3bld
27,30c27,30
< # if ($BLD_OS != 'Linux') then
< # echo " $BLD_OS -> wrong bldit script for host\!"
< # exit 1
< # endif
---
> if ($BLD_OS != 'Linux') then
> echo " $BLD_OS -> wrong bldit script for host\!"
> exit 1
> endif
43,44c43,44
< set CC = /usr/bin/cc
< set CFLAGS = "-D__unix__"
---
> set CC = /usr/bin/gcc
> set CFLAGS = " "
56,58c56,59
< # else
< # echo "Deleting files in $Bld"
< # /bin/rm $Bld/*
---
> else
> echo "Deleting files in $Bld"
> /bin/rm $Bld/*
> endif
60,61c61
< endif
< set echo
---
> #set echo
65,66c65,66
< #cvs export -r $Rel -d $Bld includes
< #cvs export -r $Rel -d $Bld m3bld
---
> cvs export -r $Rel -d $Bld includes
> cvs export -r $Rel -d $Bld m3bld
4) Modify BLD/bld_parser.c so lines 262-266 look like this:
#ifndef _WIN32
#ifndef __unix__
#include
#endif
#endif
(Or be clever and use && in the ifndif. Not sure why I didn't do that.....)
5) Run the build script again. It should work this time.

0 Comments:
Post a Comment
<< Home