Hi All, The following in Makefile.defs is incorrect IMO:
# setting LDFLAGS ifeq ($(CC_NAME), gcc) ifeq ($(LDTYPE), solaris) # solaris ld LDFLAGS+=-O2 $(PROFILE) MOD_LDFLAGS:=-G $(LDFLAGS) LIB_LDFLAGS:=-G $(LDFLAGS) LIB_SONAME=-Wl,-h, LD_RPATH=-Wl,-R, else #gcc and maybe others, => gnu ld LDFLAGS+=-Wl,-O2 -Wl,-E $(PROFILE) MOD_LDFLAGS:=-shared $(LDFLAGS) LIB_LDFLAGS:=-shared $(LDFLAGS) LIB_SONAME=-Wl,-soname, LD_RPATH=-Wl,-rpath, endif endif Solaris GCC supports the standard -shared flag parameter. TBH, I'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??? ps. the -G switch works fine when building 32 bit but breaks when building 64 bit with errors like: fatal: relocation error: R_AMD64_PC32: .... value 0x2800c20d934 does not fit Cheers Jason
_______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
