[sac-dev] inc/proto.h patch
George Helffrich
george at gly.bris.ac.uk
Wed Nov 30 07:23:10 PST 2005
On Wednesday, November 30, 2005, at 03:01 PM, Brian Savage wrote:
> George
>
> I like you proto.h patch. All the #define within the code need to be
> wrapped with #ifdef. Something to do in the future.
>
> Thanks for testing the source on a different platform. I have a
> couple questions about the makefile patch.
>
> First, I noticed that you created a new variable like
> MK = MAKE OSTYPE=$OSTYPE
> Is setting OSTYPE=$OSTYPE within SACCFLAGS more appropriate ? Plus, is
> there something on your system that depends on OSTYPE.
On available evidence, bash apparently sets OSTYPE only for login
shells. Subordinate shells invoked by recursive make don't set it.
Hence it has to be explicitly passed in the make environment. This
only makes the make process work right.
>
> Second, what in particular is in /sw/lib and /sw/include that is
> required by SAC? I would prefer if these -I and -L were included in
> the darwin OSTYPE section.
Sadly, 10.2 did not provide a standard routine interface for dynamic
loading, so it comes from Fink.
> We can automatically determine where these libraries are at the
> beginning of the make process or wrap the entire process in a
> configure script to do the same thing. Or did I read your patch
> incorrectly ?
Configure script would be better long term solution and would simplify
the make file, but this works for now. The build process has an N**2
makefile architecture regarding ar modifying lib/sac.a that is more of
a nuisance to my mind.
>
> Cheers,
> Brian
>
What is the procedure for committing patches, i.e. who has CVS write
privileges? I posted these patches to get these policy questions
sorted out.
George Helffrich
george at geology.bristol.ac.uk
More information about the sac-dev
mailing list