Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 281246 | Differences between
and this patch

Collapse All | Expand All

(-)a/configure.ac (+14 lines)
Lines 107-112 Link Here
107
    if test "x$grub_cv_cc_no_stack_protector" = xyes; then
107
    if test "x$grub_cv_cc_no_stack_protector" = xyes; then
108
      STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-stack-protector"
108
      STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-stack-protector"
109
    fi
109
    fi
110
    # Position Independent Executables, but GRUB doesn't want this feature.
111
    AC_CACHE_CHECK([whether gcc has -fPIE on as default], grub_cv_cc_fpie, [
112
      AC_TRY_COMPILE(,[
113
		#if ! defined (__PIC__) || ! defined (__PIE__)
114
		#error
115
		#endif
116
		],
117
            grub_cv_cc_fpie=yes,
118
            grub_cv_cc_fpie=no)
119
    ])
120
    if test "x$grub_cv_cc_fpie" = xyes; then
121
      STAGE1_CFLAGS="$STAGE1_CFLAGS -nopie"
122
      STAGE2_CFLAGS="$STAGE2_CFLAGS -nopie"
123
    fi
110
  fi
124
  fi
111
fi
125
fi
112
126

Return to bug 281246