1
Author: Modestas Vainius <modax@debian.org>
2
Description: workaround FBTFS on kfreebsd-amd64
3
The FTBFS is due to g++ (confirmed on version 4.4.3-2) miscompilation of the
4
src/dsql/parse.cpp file when -fipa-reference optimization is enabled (-O1 or
5
higher enables it). The patch workarounds the issue by disabling ipa-reference
6
for temp/boot/dsql/parse.o on kfreebsd-amd64.
7
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565801
9
Last-Update: 2010-03-27
11
--- a/builds/posix/prefix.freebsd_amd64
12
+++ b/builds/posix/prefix.freebsd_amd64
13
@@ -28,3 +28,6 @@ CLIENT_UTIL_TARGETS=gstat gsec fbguard n
14
Physical_IO_Module=os/posix/unix.cpp
15
# This is needed due to broken port of gcc
16
STATIC_CXXSUPPORT_LIB = -lstdc++ -lgcc_s
18
+# Workaround g++ miscompilation bug with -fipa-reference (-O1 or higher)
19
+$(OBJ)/dsql/parse.o: WCXXFLAGS += -fno-ipa-reference