Brad Bishop | c1d3433 | 2019-09-09 14:56:00 -0400 | [diff] [blame^] | 1 | From 3a935c638605bfb392ca7780d22c08c1a0a71e71 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 5 Sep 2019 21:37:33 -0700 |
| 4 | Subject: [PATCH 1/2] lib/replace/wscript: Avoid generating nested main |
| 5 | function |
| 6 | |
| 7 | clang is not happy when it sees another main nested inside the main |
| 8 | function and fails the test for prctl syscall, therefore avoid adding |
| 9 | implicit main() here |
| 10 | |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | lib/replace/wscript | 1 + |
| 14 | 1 file changed, 1 insertion(+) |
| 15 | |
| 16 | diff --git a/lib/replace/wscript b/lib/replace/wscript |
| 17 | index a7fd25d..d6767fc 100644 |
| 18 | --- a/lib/replace/wscript |
| 19 | +++ b/lib/replace/wscript |
| 20 | @@ -137,6 +137,7 @@ def configure(conf): |
| 21 | } |
| 22 | ''', |
| 23 | 'HAVE_PRCTL', |
| 24 | + addmain=False, |
| 25 | headers='sys/prctl.h', |
| 26 | msg='Checking for prctl syscall') |
| 27 | |
| 28 | -- |
| 29 | 2.23.0 |
| 30 | |