[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ifeq behaves differently on linux (using GNU Make 3.80) and Solaris (us
From: |
springer83 |
Subject: |
ifeq behaves differently on linux (using GNU Make 3.80) and Solaris (using GNU Make 3.81) |
Date: |
Thu, 24 Jun 2010 04:59:48 -0700 (PDT) |
HI ,
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)
export CPPFLAGS += -DOS_LINUX -D_GNU_SOURCE -D_REENTRANT
echo "HIIIIIII"
endif
" " "
" " "
If i build the above snippet on linux it says ::: *** missing separator.
Stop.
********************************************************************
Below is the snippet wat i am using on Solaris :
" " "
" " ""
ifeq ($(OS),SunOS)
export CPPFLAGS += -DOS_SOLARIS -D_GNU_SOURCE -D_REENTRANT
echo "HIIIIIII"
endif
" "" "
" "" "
If i build the above snippet on Solaris :::: make doesn't crib , but never
enter's the ifeq condition ...
The OS variable is getting set to SunOS ,when i echoed..
Can anyone throw some light on this ....thanks in advance
regards
--
View this message in context:
http://old.nabble.com/ifeq-behaves-differently-on--linux-%28using-GNU-Make-3.80%29-and-Solaris-%28using-GNU-Make-3.81%29-tp28981713p28981713.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
- ifeq behaves differently on linux (using GNU Make 3.80) and Solaris (using GNU Make 3.81),
springer83 <=