summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_sunos4_g++.GNU
blob: 32437d8d2ed55571cbbedaf4e7596af98c8c906a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# SunOS 4.x (Solaris 1.x) with g++ *not* using Orbix
#
# SOBUILD - compile into .so directly
#
CC	= gcc 
CXX	= gcc -I. -fno-strict-prototypes -D__ACE_INLINE__ # -frepo 
DLD	= /bin/ld
LD	= $(CXX)
#
# for G++ v2.6.0
LIBS	+= -lstdc++ -lm
# LIBS	+= -lnsl -lg++ 
PIC	= -fpic
AR	= ar
ARFLAGS	= ruv
RANLIB	= ranlib
SOFLAGS	= -assert pure-text 
SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
# SOLINK	= $(SOLINK.cc) -o $@ $(LDFLAGS) $<
PRELIB	= (echo "int main() { return 0; }" > gcctemp.c && \
	  $(COMPILE.cc) -o gcctemp.o gcctemp.c && \
	  $(LINK.cc) -o gcctemp gcctemp.o $^ $(LDFLAGS) $(LIBS); \
	  status=$$?; rm -f gcctemp*; exit $$status)