Skip to content

Commit

Permalink
[ci] OpenBSD CFLAGS LDFLAGS PKG_CONFIG_LIBDIR
Browse files Browse the repository at this point in the history
define CFLAGS LDFLAGS PKG_CONFIG_LIBDIR
for OpenBSD to find includes and libraries
  • Loading branch information
gstrauss committed Jan 15, 2024
1 parent 19f8cd5 commit e5f5696
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,25 @@ ${WITH_SASL:=true}
${WITH_UNWIND:=true}
[ -n "$NO_UNWIND" ] && unset WITH_UNWIND

if [ "$(uname -s)" = "FreeBSD" ]; then
sysname="$(uname -s)"

if [ "$sysname" = "FreeBSD" ]; then
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
fi

if [ "$(uname -s)" = "NetBSD" ]; then
if [ "$sysname" = "NetBSD" ]; then
export CPPFLAGS=-I/usr/pkg/include
export LDFLAGS=-L/usr/pkg/lib
export LD_LIBRARY_PATH=/usr/pkg/lib
fi

if [ "$sysname" = "OpenBSD" ]; then
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
export PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/heimdal/lib/pkgconfig
fi

case "${build}" in
"autobuild"|"coverity")
mkdir -p m4
Expand Down

0 comments on commit e5f5696

Please sign in to comment.