bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamic object searching


From: Eli Zaretskii
Subject: Re: dynamic object searching
Date: Tue, 30 Apr 2013 05:50:24 +0300

> From: Paul Smith <address@hidden>
> Cc: Eli Zaretskii <address@hidden>, bug-make <address@hidden>
> Date: Mon, 29 Apr 2013 19:53:26 -0400
> 
> I'm not saying make_host is wrong.  I do wish there was something more
> generic available (maybe in addition) that let people know "posix" vs
> "windows" vs. "vms" vs. "amiga" vs. whatever, and avoid a lot of
> makefiles with "if linux or freebsd or openbsd or aix or hpux or ...".
> 
> But I guess you get into sticky areas: is MacOS "posix" even though it
> has so many differences from stock BSD?  Are "windows" and "msdos" the
> same?  What about "msys" vs. "cygwin" etc.?
> 
> >From the standpoint of writing a makefile I guess what you really want
> to know is, does this environment have a POSIX shell environment, or
> Windows command.com, or VMS shell (whatever that is)?  Or something else
> (I'm not so familiar with all the variations on the Windows side)

I think the issues you raise are in addition to make_host.  make_host
should just say "ms-windows" or "ms-dos" (_not_ the same) or "cygwin"
or "gnu/linux" etc.  This is enough to determine things like $EXEEXT
etc.

We could then make more feature variables, like posix etc., or maybe a
system_features variable that is a list, which could be used to
fine-tune the Makefile.  (For knowing what shell is available one can
simply use $SHELL, so I'm not sure anything else is needed.)

And what about make_version?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]