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
11 ## gcc-2.7.2 homebrewn
15 ASFLAGS
+= -x assembler-with-cpp
17 ODD_CFLAGS
= -pipe
-Wall
-Wno-format
-Wno-switch
22 MKSHLIB
+= -G
-h
$(@
:$(OBJDIR
)/%.so
=%.so
)
23 DSO_LDOPTS
+= -G
-Xlinker
-Blargedynsym
25 ## native compiler (CDS++ 1.0)
32 OPTIMIZER
+= -O
-F Olimit
,4000
35 MKSHLIB
+= -G
-h
$(@
:$(OBJDIR
)/%.so
=%.so
)
36 DSO_LDOPTS
+= -G
-W l
,-Blargedynsym
39 # Add LD options to restrict exported symbols to those in the map file
41 # Change PROCESS to put the mapfile in the correct format for this platform
42 PROCESS_MAP_FILE
= cp
$< $@
44 NOSUCHFILE
= /sni-rm-f-sucks
45 ODD_CFLAGS
+= -DSVR4
-DSNI
-DRELIANTUNIX
50 NOMD_OS_CFLAGS
+= $(ODD_CFLAGS
)
52 # we do not have -MDupdate ...
53 OS_CFLAGS
+= $(NOMD_OS_CFLAGS
)
54 OS_LIBS
+= -lsocket
-lnsl
-lresolv
-lgen
-ldl
-lc
/usr
/ucblib
/libucb.a
57 DSO_LDOPTS
+= -h
$(DSO_NAME
)