Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | # |
michael@0 | 2 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | |
michael@0 | 6 | include $(CORE_DEPTH)/coreconf/UNIX.mk |
michael@0 | 7 | |
michael@0 | 8 | DEFAULT_COMPILER = cc |
michael@0 | 9 | |
michael@0 | 10 | ifdef NS_USE_GCC |
michael@0 | 11 | ## gcc-2.7.2 homebrewn |
michael@0 | 12 | CC = gcc |
michael@0 | 13 | CCC = g++ |
michael@0 | 14 | AS = $(CC) |
michael@0 | 15 | ASFLAGS += -x assembler-with-cpp |
michael@0 | 16 | LD = gld |
michael@0 | 17 | ODD_CFLAGS = -pipe -Wall -Wno-format -Wno-switch |
michael@0 | 18 | ifdef BUILD_OPT |
michael@0 | 19 | OPTIMIZER += -O6 |
michael@0 | 20 | endif |
michael@0 | 21 | MKSHLIB = $(LD) |
michael@0 | 22 | MKSHLIB += -G -h $(@:$(OBJDIR)/%.so=%.so) |
michael@0 | 23 | DSO_LDOPTS += -G -Xlinker -Blargedynsym |
michael@0 | 24 | else |
michael@0 | 25 | ## native compiler (CDS++ 1.0) |
michael@0 | 26 | # CC = /usr/bin/cc |
michael@0 | 27 | CC = cc |
michael@0 | 28 | CCC = /usr/bin/CC |
michael@0 | 29 | AS = /usr/bin/cc |
michael@0 | 30 | ODD_CFLAGS = |
michael@0 | 31 | ifdef BUILD_OPT |
michael@0 | 32 | OPTIMIZER += -O -F Olimit,4000 |
michael@0 | 33 | endif |
michael@0 | 34 | MKSHLIB = $(CC) |
michael@0 | 35 | MKSHLIB += -G -h $(@:$(OBJDIR)/%.so=%.so) |
michael@0 | 36 | DSO_LDOPTS += -G -W l,-Blargedynsym |
michael@0 | 37 | endif |
michael@0 | 38 | ifdef MAPFILE |
michael@0 | 39 | # Add LD options to restrict exported symbols to those in the map file |
michael@0 | 40 | endif |
michael@0 | 41 | # Change PROCESS to put the mapfile in the correct format for this platform |
michael@0 | 42 | PROCESS_MAP_FILE = cp $< $@ |
michael@0 | 43 | |
michael@0 | 44 | NOSUCHFILE = /sni-rm-f-sucks |
michael@0 | 45 | ODD_CFLAGS += -DSVR4 -DSNI -DRELIANTUNIX |
michael@0 | 46 | CPU_ARCH = mips |
michael@0 | 47 | RANLIB = /bin/true |
michael@0 | 48 | |
michael@0 | 49 | # For purify |
michael@0 | 50 | NOMD_OS_CFLAGS += $(ODD_CFLAGS) |
michael@0 | 51 | |
michael@0 | 52 | # we do not have -MDupdate ... |
michael@0 | 53 | OS_CFLAGS += $(NOMD_OS_CFLAGS) |
michael@0 | 54 | OS_LIBS += -lsocket -lnsl -lresolv -lgen -ldl -lc /usr/ucblib/libucb.a |
michael@0 | 55 | |
michael@0 | 56 | ifdef DSO_BACKEND |
michael@0 | 57 | DSO_LDOPTS += -h $(DSO_NAME) |
michael@0 | 58 | endif |