<div dir="ltr">Hi All,<div><br></div><div style>The following in Makefile.defs is incorrect IMO: </div><div style><br></div><div style><div># setting LDFLAGS</div><div>ifeq<span class="" style="white-space:pre">        </span>($(CC_NAME), gcc)</div>
<div>ifeq<span class="" style="white-space:pre">                </span>($(LDTYPE), solaris)</div><div><span class="" style="white-space:pre">                </span># solaris ld</div><div><span class="" style="white-space:pre">                </span>LDFLAGS+=-O2 $(PROFILE)</div>
<div><span class="" style="white-space:pre">                </span>MOD_LDFLAGS:=-G $(LDFLAGS)</div><div><span class="" style="white-space:pre">                </span>LIB_LDFLAGS:=-G $(LDFLAGS)</div><div><span class="" style="white-space:pre">                </span>LIB_SONAME=-Wl,-h,</div>
<div><span class="" style="white-space:pre">                </span>LD_RPATH=-Wl,-R,</div><div>else<span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">                </span>#gcc and maybe others, =&gt; gnu ld</div>
<div><span class="" style="white-space:pre">                </span>LDFLAGS+=-Wl,-O2 -Wl,-E $(PROFILE) </div><div><span class="" style="white-space:pre">                </span>MOD_LDFLAGS:=-shared $(LDFLAGS)</div><div><span class="" style="white-space:pre">                </span>LIB_LDFLAGS:=-shared $(LDFLAGS)</div>
<div><span class="" style="white-space:pre">                </span>LIB_SONAME=-Wl,-soname,</div><div><span class="" style="white-space:pre">                </span>LD_RPATH=-Wl,-rpath,</div><div>endif</div><div>endif</div><div><br></div><div style>Solaris GCC supports the standard -shared flag parameter. TBH, I&#39;m not sure where the -G came from and why? If nobody has any objections I would like to remove -G switch for Solaris GCC???</div>
<div style><br></div><div style>ps. the -G switch works fine when building 32 bit but breaks when building 64 bit with errors like:</div><div style>fatal: relocation error: R_AMD64_PC32: .... value 0x2800c20d934 does not fit<br>
</div><div style><br></div><div style>Cheers</div><div style>Jason</div><div style><br></div><div style><br></div></div></div>