Lines 390-395
else
Link Here
|
390 |
[fi] |
390 |
[fi] |
391 |
]) |
391 |
]) |
392 |
|
392 |
|
|
|
393 |
dnl Check if the Linker supports `-no-pie'. |
394 |
AC_DEFUN([grub_CHECK_NO_PIE], |
395 |
[AC_MSG_CHECKING([whether linker accepts -no-pie]) |
396 |
AC_CACHE_VAL(grub_cv_cc_ld_nopie, |
397 |
[save_LDFLAGS="$LDFLAGS" |
398 |
LDFLAGS="$LDFLAGS -no-pie" |
399 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])], |
400 |
[grub_cv_cc_ld_no_pie=yes], |
401 |
[grub_cv_cc_ld_no_pie=no]) |
402 |
LDFLAGS="$save_LDFLAGS" |
403 |
]) |
404 |
AC_MSG_RESULT([$grub_cv_prog_ld_no_pie]) |
405 |
nopie_possible=no |
406 |
if test "x$grub_cv_cc_ld_no_pie" = xyes ; then |
407 |
nopie_possible=yes |
408 |
fi |
409 |
]) |
410 |
|
393 |
dnl Check if the C compiler supports `-fPIC'. |
411 |
dnl Check if the C compiler supports `-fPIC'. |
394 |
AC_DEFUN([grub_CHECK_PIC],[ |
412 |
AC_DEFUN([grub_CHECK_PIC],[ |
395 |
[# Position independent executable. |
413 |
[# Position independent executable. |