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
This commit is contained in:
Giacomo Tesio 2017-09-26 01:07:20 +02:00
parent d56055cf58
commit d98051f943
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
/*
* This file is part of Jehanne.
*
* Copyright (C) 2017 Giacomo Tesio <giacomo@tesio.it>
*
* 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 <http://www.gnu.org/licenses/>.
*/
#include <u.h>
#include <libc.h>
#include <posix.h>
void
__application_newlib_init(void)
{
libposix_emulate_SIGCHLD();
}