25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

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

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'