diff --git a/mozilla/security/coreconf/SunOS5.mk b/mozilla/security/coreconf/SunOS5.mk index 8bc35e67b2e..ce9e2cbb953 100644 --- a/mozilla/security/coreconf/SunOS5.mk +++ b/mozilla/security/coreconf/SunOS5.mk @@ -67,6 +67,15 @@ RANLIB = echo CPU_ARCH = sparc OS_DEFINES += -DSVR4 -DSYSV -D__svr4 -D__svr4__ -DSOLARIS -D_REENTRANT +ifeq ($(OS_TEST),i86pc) +ifeq ($(USE_64),1) + CPU_ARCH = x86_64 +else + CPU_ARCH = x86 + OS_DEFINES += -Di386 +endif +endif + # Purify doesn't like -MDupdate NOMD_OS_CFLAGS += $(DSO_CFLAGS) $(OS_DEFINES) $(SOL_CFLAGS) @@ -90,9 +99,6 @@ endif PROCESS_MAP_FILE = grep -v ';-' $< | \ sed -e 's,;+,,' -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,;,' > $@ - - - # ld options: # -G: produce a shared object # -z defs: no unresolved symbols allowed @@ -135,3 +141,4 @@ else RPATH = -R '$$ORIGIN' endif +OS_LIBS += -lthread -lnsl -lsocket -lposix4 -ldl -lc diff --git a/mozilla/security/coreconf/config.mk b/mozilla/security/coreconf/config.mk index 7694d3db350..855664deb77 100644 --- a/mozilla/security/coreconf/config.mk +++ b/mozilla/security/coreconf/config.mk @@ -36,8 +36,12 @@ TARGET_OSES = FreeBSD BSD_OS NetBSD OpenUNIX OS2 QNX Darwin BeOS OpenBSD \ ifeq (,$(filter-out $(TARGET_OSES),$(OS_TARGET))) include $(CORE_DEPTH)/coreconf/$(OS_TARGET).mk else +ifeq ($(OS_TARGET),SunOS) +include $(CORE_DEPTH)/coreconf/SunOS5.mk +else include $(CORE_DEPTH)/coreconf/$(OS_TARGET)$(OS_RELEASE).mk endif +endif ####################################################################### # [4.0] Master "Core Components" source and release tags #