Re: -G option when using egcs 1.1.1, Solaris 2.5.1, and Root 2.20/06

Jonathan Hays (Jonathan.Hays@cern.ch)
Thu, 14 Jan 1999 13:28:52 +0100 (MET)


On Thu, 14 Jan 1999, Rene Brun wrote:

> 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
>

Hi,

-G option selects creation of a shared object.

According to the egcs documentation the -G option is provided for
compatability with other compilers on SVR4 systems, it also recommends
using -symbolic or -shared instead.

Jon.