diff --git a/c3s/configure b/c3s/configure
index 756348f..2d962c2 100755
--- a/c3s/configure
+++ b/c3s/configure
@@ -46,7 +46,7 @@ LIBS="${LIBS:=-lm}"
# Common config for all targets
CFLAGS="$CFLAGS -W -Wall -Werror -std=c99 -pedantic"
config_asan
-pkg_config libbsd
+pkg_config libbsd-overlay
pkg_config libffi
pkg_config libmd
diff --git a/ic3/configure b/ic3/configure
index fa5604e..303f30f 100755
--- a/ic3/configure
+++ b/ic3/configure
@@ -46,7 +46,7 @@ LIBS="${LIBS:=-lm}"
# Common config for all targets
CFLAGS="$CFLAGS -W -Wall -Werror -std=c99 -pedantic"
config_asan
-pkg_config libbsd
+pkg_config libbsd-overlay
pkg_config libffi
pkg_config libmd
diff --git a/test/configure b/test/configure
index f64fc70..9e8343d 100755
--- a/test/configure
+++ b/test/configure
@@ -48,7 +48,7 @@ LIBS="${LIBS:=} -lm"
# Common config for all targets
CFLAGS="$CFLAGS -W -Wall -Werror -std=c99 -pedantic"
config_asan
-pkg_config libbsd
+pkg_config libbsd-overlay
pkg_config libffi
pkg_config libmd
diff --git a/ucd2c/configure b/ucd2c/configure
index fb17e9b..3806408 100755
--- a/ucd2c/configure
+++ b/ucd2c/configure
@@ -33,7 +33,7 @@ LIBS="${LIBS:=}"
# Common config for all targets
CFLAGS="$CFLAGS -W -Wall -Werror -std=c99 -pedantic -O0 -ggdb"
-pkg_config libbsd
+pkg_config libbsd-overlay
# Main config
if [ "x$ENV_CFLAGS" = "x" ]; then