blob: a88d64e5654e954fafb5f4094a92f6b293a0b7c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# This platform macros file is intended to work with Digital UNIX 4.0
# (OSF/1 4.0) and GCC in version 2.7.2.1 (or newer).
CC = gcc
CXX = g++
CFLAGS += -D_REENTRANT -O2
CCFLAGS += -D_REENTRANT -O2 -fno-implicit-templates -fno-strict-prototypes
LD = $(CXX)
DLD = $(CXX)
LIBS += -lpthread -lmach -lexc -ltli -lrt
PIC = -fpic
ARFLAGS = ruvZ
# When libraries are archived, a hash index is automatically created so there
# is no need for ranlib
RANLIB = /usr/bin/true
SOFLAGS = -shared $(CPPFLAGS)
SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
PRELIB = (echo "main() { }" > gcctemp.c && \
$(COMPILE.cc) -o gcctemp.o gcctemp.c && \
$(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LIBS); \
status=$$?; rm -f gcctemp*; exit $$status)
|