Blame nss/coreconf/ReliantUNIX.mk
|
Packit |
40b132 |
#
|
|
Packit |
40b132 |
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
Packit |
40b132 |
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
Packit |
40b132 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
include $(CORE_DEPTH)/coreconf/UNIX.mk
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
DEFAULT_COMPILER = cc
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
ifdef NS_USE_GCC
|
|
Packit |
40b132 |
## gcc-2.7.2 homebrewn
|
|
Packit |
40b132 |
CC = gcc
|
|
Packit |
40b132 |
CCC = g++
|
|
Packit |
40b132 |
AS = $(CC)
|
|
Packit |
40b132 |
ASFLAGS += -x assembler-with-cpp
|
|
Packit |
40b132 |
LD = gld
|
|
Packit |
40b132 |
ODD_CFLAGS = -pipe -Wall -Wno-format -Wno-switch
|
|
Packit |
40b132 |
ifdef BUILD_OPT
|
|
Packit |
40b132 |
OPTIMIZER += -O6
|
|
Packit |
40b132 |
endif
|
|
Packit |
40b132 |
MKSHLIB = $(LD)
|
|
Packit |
40b132 |
MKSHLIB += -G -h $(@:$(OBJDIR)/%.so=%.so)
|
|
Packit |
40b132 |
DSO_LDOPTS += -G -Xlinker -Blargedynsym
|
|
Packit |
40b132 |
else
|
|
Packit |
40b132 |
## native compiler (CDS++ 1.0)
|
|
Packit |
40b132 |
# CC = /usr/bin/cc
|
|
Packit |
40b132 |
CC = cc
|
|
Packit |
40b132 |
CCC = /usr/bin/CC
|
|
Packit |
40b132 |
AS = /usr/bin/cc
|
|
Packit |
40b132 |
ODD_CFLAGS =
|
|
Packit |
40b132 |
ifdef BUILD_OPT
|
|
Packit |
40b132 |
OPTIMIZER += -O -F Olimit,4000
|
|
Packit |
40b132 |
endif
|
|
Packit |
40b132 |
MKSHLIB = $(CC)
|
|
Packit |
40b132 |
MKSHLIB += -G -h $(@:$(OBJDIR)/%.so=%.so)
|
|
Packit |
40b132 |
DSO_LDOPTS += -G -W l,-Blargedynsym
|
|
Packit |
40b132 |
endif
|
|
Packit |
40b132 |
ifdef MAPFILE
|
|
Packit |
40b132 |
# Add LD options to restrict exported symbols to those in the map file
|
|
Packit |
40b132 |
endif
|
|
Packit |
40b132 |
# Change PROCESS to put the mapfile in the correct format for this platform
|
|
Packit |
40b132 |
PROCESS_MAP_FILE = cp $< $@
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
NOSUCHFILE = /sni-rm-f-sucks
|
|
Packit |
40b132 |
ODD_CFLAGS += -DSVR4 -DSNI -DRELIANTUNIX
|
|
Packit |
40b132 |
CPU_ARCH = mips
|
|
Packit |
40b132 |
RANLIB = /bin/true
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
# For purify
|
|
Packit |
40b132 |
NOMD_OS_CFLAGS += $(ODD_CFLAGS)
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
# we do not have -MDupdate ...
|
|
Packit |
40b132 |
OS_CFLAGS += $(NOMD_OS_CFLAGS)
|
|
Packit |
40b132 |
OS_LIBS += -lsocket -lnsl -lresolv -lgen -ldl -lc /usr/ucblib/libucb.a
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
ifdef DSO_BACKEND
|
|
Packit |
40b132 |
DSO_LDOPTS += -h $(DSO_NAME)
|
|
Packit |
40b132 |
endif
|