On Thu, Jun 24, 2010 at 1:59 PM, springer83 <[email protected]>wrote:

>       I am porting an application from linux to solaris but ifeq behaves
> differently on  linux (using GNU Make 3.80) and Solaris (using GNU Make
> 3.81) ,
>
> Below is the snippet wat i am using on linux :
> " " "
> " " "
> ifeq ($(OS), linux)
>

Where does "linux" come from? My uname spits out "Linux":

step...@ludo:~/tmp$ cat Makefile
OS := $(shell uname -s)
ifeq ($(OS),Linux)
export CPPFLAGS += -DOS_LINUX -D_GNU_SOURCE -D_REENTRANT
echo "HIIIIIII"
endif
step...@ludo:~/tmp$ make
Makefile:4: *** missing separator.  Stop.

(line 4 == echo ...)

As expected.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to