summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2009-10-22 09:24:58 +0000
committerPeter Volkov <pva@gentoo.org>2009-10-22 09:24:58 +0000
commit772cd1e983d2b60f1795bbd0c376bbb5c8596006 (patch)
tree63833528b8d643546dc12204ed5ffd2b5660557f /net-analyzer/mtr/files
parentfixed poppler dependency (diff)
downloadhistorical-772cd1e983d2b60f1795bbd0c376bbb5c8596006.tar.gz
historical-772cd1e983d2b60f1795bbd0c376bbb5c8596006.tar.bz2
historical-772cd1e983d2b60f1795bbd0c376bbb5c8596006.zip
Fixed build issue with gcc-3.4.6, bug #248800, thank barthek for report.
Package-Manager: portage-2.1.7.1/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer/mtr/files')
-rw-r--r--net-analyzer/mtr/files/mtr-0.75--Wno-pointer-sign.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/net-analyzer/mtr/files/mtr-0.75--Wno-pointer-sign.patch b/net-analyzer/mtr/files/mtr-0.75--Wno-pointer-sign.patch
new file mode 100644
index 000000000000..5c63bbe1fd6e
--- /dev/null
+++ b/net-analyzer/mtr/files/mtr-0.75--Wno-pointer-sign.patch
@@ -0,0 +1,20 @@
+=== modified file 'configure.in'
+--- configure.in 2009-05-24 15:45:58 +0000
++++ configure.in 2009-05-24 16:02:19 +0000
+@@ -107,8 +107,13 @@
+ AC_MSG_CHECKING(for C flags to get more warnings)
+ ac_save_CFLAGS="$CFLAGS"
+ if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
+- dnl gcc is the easiest C compiler
+- warning_CFLAGS="-Wall -Wno-pointer-sign"
++ warning_CFLAGS="-Wall"
++ # Check if compiler supports -Wno-pointer-sign and add it if supports
++ CFLAGS_saved="$CFLAGS"
++ CFLAGS="$CFLAGS -Wno-pointer-sign"
++ AC_COMPILE_IFELSE([ AC_LANG_SOURCE([[ int foo; ]])],
++ [ warning_CFLAGS="${warning_CFLAGS} -Wno-pointer-sign" ],)
++ CFLAGS="$CFLAGS_saved"
+ else
+ dnl Vendor supplied C compilers are a bit tricky
+ case "$host_os" in
+