blob: d8bf6f8aade37a097ac5c7b3cfa8ee0f956fd0e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $Id$
#
# Platform macros for building on AIX with g++. This has been tested on
# AIX 4.1.4 and gcc 2.7.2.3.
#
# A note - later versions of gcc(>2.7.2.3, I don't know which) have a -mthreads
# flag which does the same job more elegantly.
# I haven't managed to get the shared library to work.
# I know having tli_r and tli is a bad idea, but it won't link otherwise.
#
# Contributed by Ian Wright <I.Wright@elsevier.co.uk>
debug = 1
static_libs_only = 1
CC = gcc
CXX = gcc
# Test for template instantiation.
#
include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU
CFLAGS += -W -Wall -nostdlib -mcpu=common
CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG)
#only needed for one of the tests and causes compiler errors in building libACE
#CCFLAGS += -fhandle-exceptions
DCFLAGS += -g
DLD = $(CXX)
LD = $(CXX)
OCFLAGS = -O2
OCCFLAGS = $(OCFLAGS)
LIBS += /lib/crt0_r.o -L/usr/lib/threads -lsvld -lC_r -lpthreads
-lc_r -ltli_r -lg++ -lstdc++ -lm -lg -ltli -lgcc
PIC = -fPIC
ARFLAGS = cruv
RANLIB = ranlib
|