Skip to content

Commit

Permalink
simplify sed use
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Jul 16, 2024
1 parent 0564403 commit 0af55ab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions image/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ function install_openssl()
threads zlib no-shared no-sse2 no-legacy no-tests

# Force Make to use the environment variables instead
run sed -i "s|^LIB_CFLAGS=.*||" Makefile
run sed -i "s|^LIB_LDFLAGS=.*||" Makefile
run sed -i "s|^DSO_CFLAGS=.*||" Makefile
run sed -i "s|^DSO_LDFLAGS=.*||" Makefile
run sed -i "/^LIB_CFLAGS=/d" Makefile
run sed -i "/^LIB_LDFLAGS=/d" Makefile
run sed -i "/^DSO_CFLAGS=/d" Makefile
run sed -i "/^DSO_LDFLAGS=/d" Makefile

run make "-j$MAKE_CONCURRENCY"
run make install_sw
Expand All @@ -220,7 +220,7 @@ function install_openssl()

# shellcheck disable=SC2016
run sed -i 's/^Libs:.*/Libs: -L${libdir} -lcrypto -lz -ldl -lpthread/' "$PREFIX"/lib64/pkgconfig/libcrypto.pc
run sed -i '/^Libs.private:.*/d' "$PREFIX"/lib64/pkgconfig/libcrypto.pc
run sed -i '/^Libs.private:/d' "$PREFIX"/lib64/pkgconfig/libcrypto.pc
)
# shellcheck disable=SC2181
if [[ "$?" != 0 ]]; then false; fi
Expand Down

0 comments on commit 0af55ab

Please sign in to comment.