Merge branch 'samuela-master-patch-72959' into 'master'

Fix sed call to work on macOS

See merge request redox-os/cookbook!231
This commit is contained in:
Jeremy Soller 2020-01-20 16:27:25 +00:00
commit ad24e2b439

View File

@ -19,7 +19,9 @@ function recipe_build {
--prefix=/ \
--enable-static \
cross_compiling=yes
sed -i 's|#define HAVE_GETRLIMIT 1|/* #undef HAVE_GETRLIMIT */|g' config.h
# See https://stackoverflow.com/questions/4247068/sed-command-with-i-option-failing-on-mac-but-works-on-linux.
sed -i'' -e 's|#define HAVE_GETRLIMIT 1|/* #undef HAVE_GETRLIMIT */|g' config.h
make -j"$(nproc)"
skip=1
}