bug-gnustep
[Top][All Lists]
Advanced

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

Re: gnustep-make and test-lib


From: Nicola Pero
Subject: Re: gnustep-make and test-lib
Date: Mon, 18 Mar 2002 17:38:13 +0000 (GMT)

> The gnustep-make package should also define -D<system> somewhere, to
> make system dependent #include/import a bit easier.
> (eg, Linux seems to define AF_INET in <netdb.h> while on BSD it's in 
> <sys/socket.h> ...)

I suppose the idea here is that, if you are building on top of
gnustep-base, you have no need to access system dependent headers ...
gnustep-base itself needs that, and it uses autoconf to manage it.

If you need to make system dependent #include/#import, perhaps you might
actually need autoconf ... 

you can add a -D<system> easily yourself - if you need - by adding stuff
like

ADDITIONAL_CPPFLAGS += -DGNUSTEP_TARGET_CPU=\"$(GNUSTEP_TARGET_CPU)\"

or perhaps

ADDITIONAL_CPPFLAGS += -D$(GNUSTEP_TARGET_CPU) 

or maybe

ifeq ($(findstring linux, $(GNUSTEP_TARGET_OS)), linux)
  ADDITIONAL_CPPFLAGS += -Dlinux
else ifeq ($(findstring solaris, $(GNUSTEP_TARGET_OS)), solaris)
  ADDITIONAL_CPPFLAGS += -Dsolaris
else ifeq ...

fi

but I'm not really sure how much useful that would be.

(Forgot to thank for the comments :-) - always useful to know what users
think.)




reply via email to

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