blob: 3fa136923798313e049103fc52e7acacb063d2da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
https://src.fedoraproject.org/rpms/perl-Coro/blob/rawhide/f/Coro-6.512-Disable-disabling-FORTIFY_SOURCE.patch
From 7accb61160334aa89bf771323c91e40f42af8574 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Fri, 14 Jul 2017 14:59:32 +0200
Subject: [PATCH] Disable disabling FORTIFY_SOURCE
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
6.512 started to disable FORTIFY_SOURCE feature because it breaks
jumps on some C standard libraries.
Signed-off-by: Petr Písař <ppisar@redhat.com>
--- a/Coro/Makefile.PL
+++ b/Coro/Makefile.PL
@@ -219,7 +219,6 @@ if ($iface eq "u") {
print "\nUsing ucontext implementation\n\n";
conftest ("TEST_makecontext");
} elsif ($iface eq "s") {
- $DEFINE .= " -D_FORTIFY_SOURCE=0";
$DEFINE .= " -DCORO_SJLJ";
print "\nUsing setjmp/longjmp/sigaltstack implementation\n\n";
conftest ("TEST_sigaltstack");
--- a/Coro/libcoro/coro.h
+++ b/Coro/libcoro/coro.h
@@ -342,12 +342,6 @@ struct coro_context
# define _GNU_SOURCE /* for glibc */
# endif
-/* try to disable well-meant but buggy checks in some libcs */
-# ifdef _FORTIFY_SOURCE
-# undef _FORTIFY_SOURCE
-# undef __USE_FORTIFY_LEVEL /* helps some more when too much has been included already */
-# endif
-
# if !CORO_LOSER
# include <unistd.h>
# endif
--
2.9.4
|