unxfbsd.mk (908225ed) unxfbsd.mk (c25219e0)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 35 unchanged lines hidden (view full) ---

44.INCLUDE : unxfbsdppc64.mk
45.ENDIF
46
47# filter for suppressing verbose messages from linker
48#not needed at the moment
49#LINKOUTPUT_FILTER=" |& $(SOLARENV)/bin/msg_filter"
50
51# _PTHREADS is needed for the stl
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 35 unchanged lines hidden (view full) ---

44.INCLUDE : unxfbsdppc64.mk
45.ENDIF
46
47# filter for suppressing verbose messages from linker
48#not needed at the moment
49#LINKOUTPUT_FILTER=" |& $(SOLARENV)/bin/msg_filter"
50
51# _PTHREADS is needed for the stl
52CDEFS+=$(PTHREAD_CFLAGS) -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=450 -DHAVE_STL_INCLUDE_PATH
52CDEFS+=$(PTHREAD_CFLAGS) -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=450
53.IF "$(COM)"=="CLANG"
54CDEFS+=-DHAVE_STL_INCLUDE_PATH
55.ELSE
56CDEFS+=-DBOOST_TR1_DISABLE_INCLUDE_NEXT -DBOOST_TR1_GCC_INCLUDE_PATH=c++
57.ENDIF
53
54# enable visibility define in "sal/types.h"
55.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
56CDEFS += -DHAVE_GCC_VISIBILITY_FEATURE
57.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
58
59# this is a platform with JAVA support
60.IF "$(SOLAR_JAVA)"!=""

--- 22 unchanged lines hidden (view full) ---

83.ELSE
84CFLAGSENABLESYMBOLS=-g # was temporarily commented out, reenabled before Beta
85
86.ENDIF
87
88# flags for the C++ Compiler
89CFLAGSCC= -pipe $(ARCH_FLAGS)
90# Flags for enabling exception handling
58
59# enable visibility define in "sal/types.h"
60.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
61CDEFS += -DHAVE_GCC_VISIBILITY_FEATURE
62.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
63
64# this is a platform with JAVA support
65.IF "$(SOLAR_JAVA)"!=""

--- 22 unchanged lines hidden (view full) ---

88.ELSE
89CFLAGSENABLESYMBOLS=-g # was temporarily commented out, reenabled before Beta
90
91.ENDIF
92
93# flags for the C++ Compiler
94CFLAGSCC= -pipe $(ARCH_FLAGS)
95# Flags for enabling exception handling
96.IF "$(COM)"=="CLANG"
91CFLAGSEXCEPTIONS=-fexceptions
97CFLAGSEXCEPTIONS=-fexceptions
98.ELSE
99CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
100.ENDIF
92# Flags for disabling exception handling
93CFLAGS_NO_EXCEPTIONS=-fno-exceptions
94
95# -fpermissive should be removed as soon as possible
96CFLAGSCXX= -pipe $(ARCH_FLAGS)
97.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
98CFLAGSCXX += -fvisibility-inlines-hidden
99.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"

--- 94 unchanged lines hidden (view full) ---

194.IF "$(ALLOC)" == "TCMALLOC"
195STDLIBGUIMT+=-ltcmalloc
196STDLIBCUIMT+=-ltcmalloc
197STDSHLGUIMT+=-ltcmalloc
198STDSHLCUIMT+=-ltcmalloc
199.ENDIF
200
201# libraries for linking applications
101# Flags for disabling exception handling
102CFLAGS_NO_EXCEPTIONS=-fno-exceptions
103
104# -fpermissive should be removed as soon as possible
105CFLAGSCXX= -pipe $(ARCH_FLAGS)
106.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
107CFLAGSCXX += -fvisibility-inlines-hidden
108.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"

--- 94 unchanged lines hidden (view full) ---

203.IF "$(ALLOC)" == "TCMALLOC"
204STDLIBGUIMT+=-ltcmalloc
205STDLIBCUIMT+=-ltcmalloc
206STDSHLGUIMT+=-ltcmalloc
207STDSHLCUIMT+=-ltcmalloc
208.ENDIF
209
210# libraries for linking applications
202STDLIBGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ${FBSD_LDFLAGS}
203STDLIBCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ${FBSD_LDFLAGS}
211STDLIBGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ${FBSD_GCC_RPATH}
212STDLIBCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ${FBSD_GCC_RPATH}
204# libraries for linking shared libraries
213# libraries for linking shared libraries
205STDSHLGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ${FBSD_LDFLAGS}
206STDSHLCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ${FBSD_LDFLAGS}
214STDSHLGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ${FBSD_GCC_RPATH}
215STDSHLCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed ${FBSD_GCC_RPATH}
207
208X11LINK_DYNAMIC = -Wl,--as-needed -lXext -lX11 -Wl,--no-as-needed
209
210LIBSALCPPRT*=-Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive
211
212.IF "$(USE_STLP_DEBUG)" != ""
213.IF "$(STLPORT_VER)" >= "500"
214LIBSTLPORT=$(DYNAMIC) -lstlportstlg

--- 38 unchanged lines hidden ---
216
217X11LINK_DYNAMIC = -Wl,--as-needed -lXext -lX11 -Wl,--no-as-needed
218
219LIBSALCPPRT*=-Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive
220
221.IF "$(USE_STLP_DEBUG)" != ""
222.IF "$(STLPORT_VER)" >= "500"
223LIBSTLPORT=$(DYNAMIC) -lstlportstlg

--- 38 unchanged lines hidden ---