summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_qnx_neutrino.GNU
blob: 8558118b8d9f0c3445ba0c9cd504b68fddaf1f7f (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
38
39
# $Id$

# QNX 4.25 hosted GNU g++ for Neutrino 2.0 Beta

# NOTE: with g++ 2.8.0, you'll need to disable optimization in order to
#       instantiate ACE_Map_Manager (ace/Map_Manager.cpp).  The easiest
#       way to do that is to set "optimize = 0", either below or on
#       your make command line.

CROSS-COMPILE = 1

ifeq (,$(debug))
  debug = 1
endif # ! debug
ifeq (,$(optimize))
  optimize = 0
endif # ! optimize

static_libs_only = 1

ACE_HAS_GNUG_PRE_2_8 := 0

CC      = i386-nto-gcc
CXX     = i386-nto-g++
CFLAGS  += -pipe -W -Wall -Wpointer-arith -Winline
CCFLAGS += $(CFLAGS) -fno-implicit-templates
DCFLAGS += -g
DLD     = $(CXX)
LD      = $(CXX)
LDFLAGS +=
LIBS    += -lsocket -lstdc++
OCFLAGS += -O2
PIC     = -fPIC
AR      = i386-nto-ar
ARFLAGS = ruv
RANLIB  = i386-nto-ranlib
SOFLAGS = -G $(CPPFLAGS) -shared
SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
PRELIB  = @true