[sac-dev] [PING][PATCH] src/makefile patch

George Helffrich george at gly.bris.ac.uk
Mon Dec 12 10:51:42 PST 2005


Brian points out a flaw in the previous committed patch that I believe
that this one fixes.  It succeeds in all the build examples Brian gives
below.  Please let me know if it fails in any new, obscure way, or is a
satisfactory fix.  It works (in bash) with:

make
make OSTYPE=darwin
OSTYPE=darwin make
export OSTYPE=darwin; make

Index: src/makefile
===================================================================
RCS file: /export/home/cvs/repository/SAC/src/makefile,v
retrieving revision 1.2
diff -u -r1.2 makefile
--- src/makefile        1 Dec 2005 18:17:57 -0000       1.2
+++ src/makefile        3 Dec 2005 17:53:03 -0000
@@ -26,7 +26,7 @@
   ###########################################################

   OSTYPES_SUPPORTED=solaris linux darwin darwin6.0
-OSTYPE=`echo $$OSTYPE`
+OSTYPE := $(shell echo $$OSTYPE)
   export SACCFLAGS
   export DEBUG


On Friday, December 2, 2005, at 06:46 PM, savage13 at dtm.ciw.edu wrote:

 > George,
 >
 >I tried to compile the source following the addition of your patch
 >% export OSTYPE=darwin
 >% make
 >This fails due to the line >OSTYPE=`echo $$OSTYPE`
 >and the checking for valid operating systems in the ostype: rule
 >and (if test x$XOSTYPE = x$$z)
 >
 >It also does not work like
 >% env OSTYPE=darwin make
 >
 >
 >Although it does work using
 >% make OSTYPE=darwin
 >
 >Is there a way we could fix this such that is works in the darwin6
 >system
 >and satisfies these different cases.
 >
 >Cheers,
 >Brian
 >
 >
 >
 >
 >
 >
 >
 >
 > 2005/12/01 George Helffrich http://www1.gly.bris.ac.uk~george/gh.html
 >
 > * Tweak makefile so MacOS 10.2.x builds work
 > (src/makefile)
 >
 > * Update Readme info to mention 10.2.x builds work
 > (Readme.buildsac)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2240 bytes
Desc: not available
Url : http://www.iris.washington.edu/pipermail/sac-dev/attachments/20051212/53977f35/attachment.bin


More information about the sac-dev mailing list