Re: [ROOT] up to date linux makefile flags.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed May 23 2001 - 16:47:12 MEST


Hi Mat,

On all systems, you can do:
  root-config --cflags
to see the official list of compiler flags
In the same way, you can do
  root-config --libs
or
  root-config --glibs
to see the link options, list of libs, etc (in no graphics or graphics mode)
It is convenient to use root-config like
  g++ `root-config --cflags` -c myfile.cxx
or in the same way when linking, eg
g++ -g -o A test.o A.so `root-config --glibs`

Using this macro, you are protected against any additional link that may become
necessary in the future and your scripts become more portable.

In case of the KAI compiler on Linux, root-config --cflags gives
--signed_chars -D_EXTERN_INLINE=inline --diag_suppress 191 -I$ROOTSYS/include


Rene Brun

Matthew Martin wrote:
> 
> Hi Guys,
>         Does anyone have an up to date set of CXXFLAGS and LDFLAGS for
> compiling root under linux KCC?
> 
> cheers
> 
> Mat



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:46 MET