Skip to content

Commit

Permalink
[Glib] Improve sed script for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Nov 17, 2019
1 parent 13cac37 commit a58ed36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions G/Glib/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ SED_SCRIPT=()
# cross-file has already entries for `c_link_args`, so we have to append.
if [[ "${target}" == powerpc64le-* ]]; then
SED_SCRIPT+=(-e "s?c_link_args = \[\(.*\)]?c_link_args = [\1, '-liconv']?")
elif [[ "${target}" == *-freebsd* ]]; then
SED_SCRIPT+=(-e "s?c_link_args = \[]?c_link_args = ['-L${libdir}', '-liconv']?")
else
SED_SCRIPT+=(-e "s?c_link_args = \[]?c_link_args = ['-liconv']?")
fi
Expand Down

0 comments on commit a58ed36

Please sign in to comment.