2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 include $(CORE_DEPTH
)/coreconf
/UNIX.mk
15 export PATH
:=$(PATH
):/opt
/ncc
/bin
19 GCC_FLAGS_EXTRA
+= -pipe
21 DEFINES
+= -DSVR4
-DSYSV
-DHAVE_STRERROR
-DNCR
23 OS_CFLAGS
+= -Hnocopyr
-DSVR4
-DSYSV
-DHAVE_STRERROR
-DNCR
-DPRFSTREAMS_BROKEN
29 # OS_LIBS += -L/opt/ncc/lib
34 #OS_LIBS += -lsocket -lnsl -ldl -lc
36 MKSHLIB
+= $(LD
) $(DSO_LDOPTS
)
37 #DSO_LDOPTS += -G -z defs
40 # Add LD options to restrict exported symbols to those in the map file
42 # Change PROCESS to put the mapfile in the correct format for this platform
43 PROCESS_MAP_FILE
= cp
$< $@
48 NOSUCHFILE
= /solaris-rm-f-sucks
50 # now take care of default GCC (rus@5/5/97)
53 # if gcc-settings are redefined already - don't touch it
55 ifeq (,$(findstring gcc
, $(CC
)))
59 # always use -fPIC - some makefiles are still broken and don't distinguish
60 # situation when they build shared and static libraries
61 CFLAGS
+= -fPIC
-Wall
-Wno-switch
$(GCC_FLAGS_EXTRA
)
62 # OS_LIBS += -L/usr/local/lib -lstdc++ -lg++ -lgcc