/usr/src/gcc-4.6/debian/patches/libffi-kfreebsd.diff is in gcc-4.6-source 4.6.4-6ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # DP: libffi: Define FFI_MMAP_EXEC_WRIT on kfreebsd-*.
--- a/src/libffi/configure.ac
+++ b/src/libffi/configure.ac
@@ -313,7 +313,7 @@
fi
case "$target" in
- *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
+ *-apple-darwin10* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
AC_DEFINE(FFI_MMAP_EXEC_WRIT, 1,
[Cannot use malloc on this target, so, we revert to
alternative means])
|