summaryrefslogtreecommitdiff
path: root/devel/stlport/files/patch-test::eh::gcc-freebsd.mak
blob: d456c25abcd24f30b74dd8d9d5e2441cbf965be5 (plain) (blame)
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
--- test/eh/gcc-freebsd.mak.orig	Sun Nov  2 16:58:53 2003
+++ test/eh/gcc-freebsd.mak	Sat Nov  6 16:19:16 2004
@@ -34,20 +34,17 @@
 D_TEST = ./eh_test_d.out
 NOSGI_TEST = ./eh_test_nosgi.out
 
-CC = c++ -pthread
-CXX = $(CC)
-
 # dwa 12/22/99 -- had to turn off -ansi flag so we could use SGI IOSTREAMS
 # also, test_slist won't compile with -O3/-O2 when targeting PPC. It fails 
 # in the assembler with 'invalid relocation type'
-CXXFLAGS = -Wall -g -O ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW
+CXXFLAGS = $(PTHREAD_CFLAGS) -D_REENTRANT -fexceptions -Wall ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW -DEH_DELETE_HAS_THROW_SPEC
 
-D_CXXFLAGS = -Wall -g -O ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW -D_STLP_DEBUG -D_STLP_USE_STATIC_LIB
-NOSGI_CXXFLAGS = -Wall -g -O2 ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -D_STLP_NO_OWN_IOSTREAMS -D_STLP_DEBUG_UNINITIALIZED -DEH_VECTOR_OPERATOR_NEW
+D_CXXFLAGS = $(CXXFLAGS) -g -D_STLP_DEBUG
+NOSGI_CXXFLAGS = $(CXXFLAGS) -D_STLP_NO_OWN_IOSTREAMS -D_STLP_DEBUG_UNINITIALIZED
 
 check: $(TEST)
 
-LIBS = -lm 
+LIBS = -lm $(PTHREAD_LIBS)
 D_LIBSTLPORT = -L../../lib -lstlport_gcc_stldebug
 LIBSTLPORT = -L../../lib -lstlport_gcc