diff options
Diffstat (limited to 'extra/libelf/build')
-rwxr-xr-x | extra/libelf/build | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/extra/libelf/build b/extra/libelf/build index 64d0e04d..ab7be6a0 100755 --- a/extra/libelf/build +++ b/extra/libelf/build @@ -4,12 +4,19 @@ export CFLAGS="$CFLAGS -Wno-error" # Disable configure error for missing argp, fts, and obstack. -sed -i -e 's/as_fn_error.*argp/: "/g' \ - -e 's/as_fn_error.*fts/: "/g' \ - -e 's/as_fn_error.*obstack/: "/g' configure +clsed 's/as_fn_error.*argp/: "/g' configure +clsed 's/as_fn_error.*fts/: "/g' configure +clsed 's/as_fn_error.*obstack/: "/g' configure -# Don't compile two unrelated C files which require argp. -sed -i 's/color.*printversion../#/g' lib/Makefile.in +# Don't compile unrelated C files which require argp. +# +# False positive, we are not trying to expand anything +# shellcheck disable=2016 +{ + clsed 's/color.*printversion../#/g' lib/Makefile.in + clsed 's/error.*printversion../#/g' lib/Makefile.in + clsed 's/color\.\$(OBJ/#/g' lib/Makefile.in +} ./configure \ --prefix=/usr \ |