diff --git a/hogweed.pc.in b/hogweed.pc.in
index 457f5f2f3ecdecf6b5c90e61c5f2f2600233c94a..839f7d0d68bb37e63c611bd233866ba53cab8eee 100644
--- a/hogweed.pc.in
+++ b/hogweed.pc.in
@@ -13,6 +13,6 @@ URL: http://www.lysator.liu.se/~nisse/nettle
 Version: @PACKAGE_VERSION@
 Requires.private: nettle
 Libs: -L${libdir} -lhogweed
-Libs.private: -lgmp
+Libs.private: @LIBS@
 Cflags: -I${includedir}