diff --git a/meta-networking/recipes-support/pgpool2/pgpool2_4.7.3.bb b/meta-networking/recipes-support/pgpool2/pgpool2_4.7.3.bb
index d5f1f75d4e..4fb9a18db7 100644
--- a/meta-networking/recipes-support/pgpool2/pgpool2_4.7.3.bb
+++ b/meta-networking/recipes-support/pgpool2/pgpool2_4.7.3.bb
@@ -35,6 +35,10 @@ PACKAGECONFIG[postgresql] = "--with-pgsql-includedir=${STAGING_INCDIR}/postgresq
 EXTRA_OECONF += "--disable-static \
 	         --disable-rpath \
 	        "
+
+# Use the target libdir in pgpool_setup instead of the recipe sysroot one
+EXTRA_OEMAKE += "PGSQL_LIB_DIR=${libdir}"
+
 FILES:${PN} += "${datadir}/pgpool-II/ "

 do_configure:append() {
