Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 434640 Details for
Bug 583042
sys-boot/grub-2.02_beta3-r1: building w/gcc-6[pie]: error: x86_64-pc-linux-gnu/bin/ld: -r and -shared may not be used together
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for linking with -no-pie
grub-ld_nopie.patch (text/plain), 1.42 KB, created by
Magnus Granberg
on 2016-05-18 20:21:11 UTC
(
hide
)
Description:
patch for linking with -no-pie
Filename:
MIME Type:
Creator:
Magnus Granberg
Created:
2016-05-18 20:21:11 UTC
Size:
1.42 KB
patch
obsolete
>--- a/acinclude.m4 2015-11-11 20:56:52.000000000 +0100 >+++ b/acinclude.m4 2016-05-17 00:08:22.000000000 +0200 >@@ -390,6 +390,24 @@ else > [fi] > ]) > >+dnl Check if the Linker supports `-no-pie'. >+AC_DEFUN([grub_CHECK_NO_PIE], >+[AC_MSG_CHECKING([whether linker accepts -no-pie]) >+AC_CACHE_VAL(grub_cv_cc_ld_nopie, >+[save_LDFLAGS="$LDFLAGS" >+LDFLAGS="$LDFLAGS -no-pie" >+AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])], >+ [grub_cv_cc_ld_no_pie=yes], >+ [grub_cv_cc_ld_no_pie=no]) >+LDFLAGS="$save_LDFLAGS" >+]) >+AC_MSG_RESULT([$grub_cv_prog_ld_no_pie]) >+nopie_possible=no >+if test "x$grub_cv_cc_ld_no_pie" = xyes ; then >+ nopie_possible=yes >+fi >+]) >+ > dnl Check if the C compiler supports `-fPIC'. > AC_DEFUN([grub_CHECK_PIC],[ > [# Position independent executable. >--- a/configure.ac 2016-02-27 13:40:56.000000000 +0100 >+++ b/configure.ac 2016-05-17 00:57:29.471000000 +0200 >@@ -1184,13 +1184,18 @@ CFLAGS="$TARGET_CFLAGS" > > # Position independent executable. > grub_CHECK_PIE >+grub_CHECK_NO_PIE > [# Need that, because some distributions ship compilers that include >-# `-fPIE' in the default specs. >+# `-fPIE and -pie' in the default specs. > if [ x"$pie_possible" = xyes ]; then > TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE" >+fi >+if [ x"$nopie_possible" = xyes ] && [ x"$pie_possible" = xyes ]; then >+ TARGET_LDFLAGS="$TARGET_LDFLAGS -no-pie" > fi] > > CFLAGS="$TARGET_CFLAGS" >+LDFLAGS="$TARGET_LDFLAGS" > > # Position independent executable. > grub_CHECK_PIC
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 583042
:
434290
| 434640 |
434908
|
434910