commit:     270d1954363def0d88b42054d5991c9fde0a8071
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 14 23:35:50 2017 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Mar 14 23:36:42 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=270d1954

sys-apps/memtest86+: make sure we keep -fno-PIC on test.o/random.o objects 
#538596

 sys-apps/memtest86+/files/memtest86+-5.01-test-random-cflags.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-test-random-cflags.patch 
b/sys-apps/memtest86+/files/memtest86+-5.01-test-random-cflags.patch
index 8a76d046414..dcdccb8c6e9 100644
--- a/sys-apps/memtest86+/files/memtest86+-5.01-test-random-cflags.patch
+++ b/sys-apps/memtest86+/files/memtest86+-5.01-test-random-cflags.patch
@@ -11,11 +11,11 @@ https://bugs.gentoo.org/590974
  
  test.o: test.c
 -      $(CC) -c -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin 
-ffreestanding test.c
-+test.o: CFLAGS += -O0
++test.o: CFLAGS += -O0 -fno-PIC
  
  random.o: random.c
 -      $(CC) -c -Wall -march=i486 -m32 -O3 -fomit-frame-pointer -fno-builtin 
-ffreestanding random.c
-+random.o: CFLAGS += -O3
++random.o: CFLAGS += -O3 -fno-PIC
        
  # rule for build number generation  
  build_number:

Reply via email to