Hi Victor, root-config gives uptodate and correct information of only the relevant options for user apps. There is no need to also have -Wall or -fPIC for own code. If root-config is not uptodate it is a bug so please report as such. Also in binary distributions we don't ship the Makefile and all Module.mk files. -- Fons On Sun, 2002-05-26 at 02:03, Victor Perevoztchikov wrote: > Hi Fons, > Proposal: if to add to $ROOTSYS/Makefile lines: > showCXX: > @echo "$(CXX)" > showCXXFLAGS: > @echo "$(CXXFLAGS)" > showLD: > @echo "$(LD)" > showLDFLAGS: > showALLLIBS: > @echo "$(ROOTLIBS) $(RINTLIBS) $(RINTLIBS) $(CINTLIBS) $(CILIBS) $(XLIBS) $(SYSLIBS)" > > etc. > > then > gmake showCXXFLAGS > -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude -D_REENTRANT > > As a result in makefile for application which uses ROOT, line: > > CXXFLAGS := $(shell gmake -C $(ROOTSYS) -f Makefile) > > Then CXXFLAGS will be defined exactly as it was used in ROOT. > So any modification of ROOT flags will be immediately used in user application. > The existing root-config utility provides wrong or outdated info. Evidently it is not easy to support it. > But proposed modification of Makefile garanteed correctness of information. > > What is your opinion? > > Victor > > > > > > > > > > > Victor M. Perevoztchikov perev@bnl.gov > Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000 > tel office : 631-344-7894; fax 631-344-4206; home 631-345-2690 > -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:54 MET