Re: egcs 1.1.1, Solaris 2.5.1, and Root 2.20/06

From: O'NEEL Bruce (bruce.oneel@obs.unige.ch)
Date: Thu Jan 14 1999 - 13:48:29 MET


Hi,
  Jonathan Hays already answered the -shared vs the -G, it would seem
that -shared would be a better choice.

  Given that I built without the -lsunmath it must not be necessary.
A search over all of the man pages which come with Suns Workshop
product seems to indicate that you get some additional functions if
you #include <sunmath.h> and then link with -lsunmath.  In addition,
the fortran docs mention it as the sun "value added" math library.
Maybe it's faster, who knows.  OTOH, on my system at least, it only
seems to be in the directory where Workshop is installed and not in
/usr/lib, so, maybe it should be dropped because not everyone will
have it...

  Other's thoughts?

cheers

bruce

Rene Brun writes:
 > Hi Bruce,
 > Your makefile is identical to the makefile for Solarisegcs
 > in the distribution tar file, except the 2 following lines
 > 
 > ! SOFLAGS       = -shared
 > --- 28 ----
 > ! SOFLAGS       = -G
 > ***************
 > *** 33 ****
 > ! XLIBS         = $(ROOTSYS)/lib/libXpm.a -L/usr/openwin/lib -lX11
 > -lsunmath
 > --- 34 ----
 > ! XLIBS         = $(ROOTSYS)/lib/libXpm.a -L/usr/openwin/lib -lX11
 > 
 > I have taken your Makefile, but I would be curious to know
 > if the difference is important.
 > 
 > Rene Brun
 > 
 > 
 > 
 > O'NEEL Bruce wrote:
 > > 
 > > Hi,
 > >   Using the makefile below, egcs 1.1.1 builds Root on Solaris 2.5.1
 > > with no problems.
 > > 
 > > cheers
 > > 
 > > bruce
 > > 
 > > ******************************
 > > # Makefile of ROOT for Solaris with egcs
 > > 
 > > PLATFORM      = solaris
 > > 
 > > CXX           = /home/isdc/oneel/local/bin/g++
 > > CC            = /home/isdc/oneel/local/bin/gcc
 > > CXXFLAGS      = -fPIC -I/usr/openwin/include -fno-rtti -fno-exceptions
 > > CFLAGS        = -fPIC -I/usr/openwin/include
 > > CINTCXXFLAGS  = -fPIC -fno-rtti -fno-exceptions \
 > >                 -DG__REGEXP1 -DG__UNIX -DG__OSFDLL \
 > >                 -DG__SHAREDLIB -DG__ROOT -DG__REDIRECTIO
 > > CINTCFLAGS    = -fPIC -DG__REGEXP1 -DG__UNIX -DG__OSFDLL \
 > >                 -DG__SHAREDLIB -DG__ROOT -DG__REDIRECTIO
 > > OPT           = -O -g
 > > NOOPT         =
 > > LD            = $(CXX)
 > > LDFLAGS       = $(OPT)
 > > SOFLAGS       = -G
 > > SOEXT         = so
 > > SYSLIBS       = -lm -ldl
 > > SYSXLIBS      = -L/usr/openwin/lib -lX11 -lm -lgen -ldl -lsocket
 > > XLIBS         = $(ROOTSYS)/lib/libXpm.a -L/usr/openwin/lib -lX11
 > > CILIBS        = -lm -ltermcap -ldl -L/usr/ccs/lib -lgen
 > > 
 > > ##### MACROS and TARGETS #####
 > > 
 > > include Make-macros
 > > 
 > > ##### DEPENDENCIES #####
 > > 
 > > include Make-depend



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:28 MET