Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 517258
Collapse All | Expand All

(-)build/configure.ac.warnings.ORIG (-7 / +12 lines)
Lines 42-54 Link Here
42
  AS_HELP_STRING([--disable-lto],
42
  AS_HELP_STRING([--disable-lto],
43
                 [Do not try to use Link-Time Optimization]))
43
                 [Do not try to use Link-Time Optimization]))
44
if test "x$enable_lto" != "xno"; then
44
if test "x$enable_lto" != "xno"; then
45
   safe_MAYBE_WARN="$MAYBE_WARN"
45
AC_ARG_ENABLE(lto,
46
   MAYBE_WARN="$MAYBE_WARN -flto"
46
  AS_HELP_STRING([--disable-lto],
47
   AC_TRY_LINK([],[
47
		 [Do not try to use Link-Time Optimization]))
48
	int main(int argc, char **argv) { return 0; }
48
if test "x$enable_lto" != "xno"; then
49
   ],[],[
49
  safe_MAYBE_WARN="$MAYBE_WARN"
50
	MAYBE_WARN="$safe_MAYBE_WARN"
50
  MAYBE_WARN="$MAYBE_WARN -flto"
51
   ])
51
  AC_TRY_LINK([],[
52
       int main(int argc, char **argv) { return 0; }
53
  ],[],[
54
       MAYBE_WARN="$safe_MAYBE_WARN"
55
  ])
56
fi
52
fi
57
fi
53
58
54
MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common"
59
MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common"

Return to bug 517258