From 6cbb5471d901a6614169fc03c2fa03c490d8004d Mon Sep 17 00:00:00 2001 From: mbr Date: Tue, 5 Mar 2002 08:00:18 +0000 Subject: The tests are only working if compiled without -O. With -O we get a bus error. This may be true for other code who uses the STLport. --- devel/stlport/files/patch-tests::eh::gcc-freebsd.mak | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 devel/stlport/files/patch-tests::eh::gcc-freebsd.mak (limited to 'devel') diff --git a/devel/stlport/files/patch-tests::eh::gcc-freebsd.mak b/devel/stlport/files/patch-tests::eh::gcc-freebsd.mak new file mode 100644 index 0000000..b90b5f1 --- /dev/null +++ b/devel/stlport/files/patch-tests::eh::gcc-freebsd.mak @@ -0,0 +1,14 @@ +--- test/eh/gcc-freebsd.mak.orig Tue Mar 5 08:57:04 2002 ++++ test/eh/gcc-freebsd.mak Tue Mar 5 08:57:34 2002 +@@ -40,9 +40,9 @@ + # 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 = -Wall -g ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW + +-D_CXXFLAGS = -Wall -g -O ${STL_INCL} -I. ${CXX_EXTRA_FLAGS} -DEH_VECTOR_OPERATOR_NEW -D_STLP_DEBUG -D_STLP_USE_STATIC_LIB ++D_CXXFLAGS = -Wall -g ${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 + + check: $(TEST) -- cgit v1.1