From d98051f9432b96a48d910da5e65a3cee8236c4f3 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Tue, 26 Sep 2017 01:07:20 +0200 Subject: [PATCH] mksh: build in build/ dir; enable SIGCHLD To build in mksh/build/ directory use: TARGET_OS=Jehanne CC=x86_64-jehanne-gcc CPPFLAGS="-g -ggdb -gdwarf-2 -O0" sh ../src/Build.sh -r --- cross/pkgs/mksh/build/init_libc.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 cross/pkgs/mksh/build/init_libc.c diff --git a/cross/pkgs/mksh/build/init_libc.c b/cross/pkgs/mksh/build/init_libc.c new file mode 100644 index 0000000..9f8a0cc --- /dev/null +++ b/cross/pkgs/mksh/build/init_libc.c @@ -0,0 +1,26 @@ +/* + * This file is part of Jehanne. + * + * Copyright (C) 2017 Giacomo Tesio + * + * This is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, version 3 of the License. + * + * Jehanne is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with Jehanne. If not, see . + */ +#include +#include +#include + +void +__application_newlib_init(void) +{ + libposix_emulate_SIGCHLD(); +}