make-binaries: Edit rebar.config more carefully

Don't break the (currently nonexistent) case where a dependency's
rebar.config file specifies LDFLAGS before and after "-lstdc++", such as
"-lfoo -lstdc++ -lbar".
This commit is contained in:
Holger Weiss 2022-05-28 10:21:43 +02:00
parent c1ee86e85c
commit b4c78336a6
1 changed files with 1 additions and 1 deletions

View File

@ -748,7 +748,7 @@ build_rel()
--enable-all \
--disable-erlang-version-check
make deps
sed -i 's/ *-lstdc++ *//g' 'deps/'*'/rebar.config'* # Link statically.
sed -i 's/ *-lstdc++//g' 'deps/'*'/rebar.config'* # Link statically.
if [ "$mode" = 'cross' ]
then
ln -s "$prefix/lib/erlang" 'lib/erlang'