Skip to content

Commit

Permalink
buildsys: improve cross-build for freebsd and openbsd
Browse files Browse the repository at this point in the history
on FreeBSD and OpenBSD, the most 3rd-party libs are installed in /usr/local/lib directory, we need to manully add -L/usr/local/lib to LDFLAGS only when do native build.

Signed-off-by: leleliu008 <leleliu008@gmail.com>
  • Loading branch information
leleliu008 committed Dec 1, 2023
1 parent fae067a commit bcd621e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ case $host in
fi
;;
*freebsd*|*openbsd*)
# https://github.com/universal-ctags/ctags/issues/3338
export LDFLAGS="$LDFLAGS -L/usr/local/lib"
if test "$cross_compiling" = "no" ; then
# https://github.com/universal-ctags/ctags/issues/3338
export LDFLAGS="$LDFLAGS -L/usr/local/lib"
fi
;;
esac

Expand Down

0 comments on commit bcd621e

Please sign in to comment.