Fix sed call to work on macOS.

This commit is contained in:
samuela 2020-01-08 19:21:41 +00:00
parent 237dc42544
commit c047c8797d

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
}