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 | # |
michael@0 | 7 | # The Bourne shell (sh) on OSF1 doesn't handle "set -e" correctly, |
michael@0 | 8 | # which we use to stop LOOP_OVER_DIRS submakes as soon as any |
michael@0 | 9 | # submake fails. So we use the Korn shell instead. |
michael@0 | 10 | # |
michael@0 | 11 | SHELL = /usr/bin/ksh |
michael@0 | 12 | |
michael@0 | 13 | include $(CORE_DEPTH)/coreconf/UNIX.mk |
michael@0 | 14 | |
michael@0 | 15 | DEFAULT_COMPILER = cc |
michael@0 | 16 | |
michael@0 | 17 | CC = cc |
michael@0 | 18 | OS_CFLAGS += $(NON_LD_FLAGS) -std1 |
michael@0 | 19 | CCC = cxx |
michael@0 | 20 | RANLIB = /bin/true |
michael@0 | 21 | CPU_ARCH = alpha |
michael@0 | 22 | |
michael@0 | 23 | ifdef BUILD_OPT |
michael@0 | 24 | OPTIMIZER += -Olimit 4000 |
michael@0 | 25 | endif |
michael@0 | 26 | |
michael@0 | 27 | NON_LD_FLAGS += -ieee_with_inexact |
michael@0 | 28 | OS_CFLAGS += -DOSF1 -D_REENTRANT |
michael@0 | 29 | |
michael@0 | 30 | ifeq ($(USE_PTHREADS),1) |
michael@0 | 31 | OS_CFLAGS += -pthread |
michael@0 | 32 | endif |
michael@0 | 33 | |
michael@0 | 34 | # The command to build a shared library on OSF1. |
michael@0 | 35 | MKSHLIB += ld -shared -expect_unresolved "*" -soname $(notdir $@) |
michael@0 | 36 | ifdef MAPFILE |
michael@0 | 37 | MKSHLIB += -hidden -input $(MAPFILE) |
michael@0 | 38 | endif |
michael@0 | 39 | PROCESS_MAP_FILE = grep -v ';+' $< | grep -v ';-' | \ |
michael@0 | 40 | sed -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,,' -e 's,^,-exported_symbol ,' > $@ |
michael@0 | 41 | |
michael@0 | 42 | DSO_LDOPTS += -shared |
michael@0 | 43 | |
michael@0 | 44 | # required for freebl |
michael@0 | 45 | USE_64=1 |
michael@0 | 46 | # this platform name does not use a bit tag due to only having a 64-bit ABI |
michael@0 | 47 | 64BIT_TAG= |
michael@0 | 48 |