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.


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

Reply via email to