diff --git a/SMP/libgmp.vcxproj b/SMP/libgmp.vcxproj
index b4e06ae42..442d82c51 100644
--- a/SMP/libgmp.vcxproj
+++ b/SMP/libgmp.vcxproj
@@ -1559,114 +1559,114 @@
- $(ProjectDir)..\..\..\msvc\
+ $(ProjectDir)..\msvc\
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
- libgmpd
+ gmpd
Clean
MSB8012
- $(ProjectDir)..\..\..\msvc\
+ $(ProjectDir)..\msvc\
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
- libgmpd_winrt
+ gmpd
Clean
MSB8012
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
libgmpd
- $(ProjectDir)..\..\..\msvc\
+ $(ProjectDir)..\msvc\
Clean
MSB8012
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
- libgmpd_winrt
- $(ProjectDir)..\..\..\msvc\
+ libgmpd
+ $(ProjectDir)..\msvc\
Clean
MSB8012
- $(ProjectDir)..\..\..\msvc\
+ $(ProjectDir)..\msvc\
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
gmpd
Clean
MSB8012
- $(ProjectDir)..\..\..\msvc\
+ $(ProjectDir)..\msvc\
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
- gmpd_winrt
+ gmpd
Clean
MSB8012
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
gmpd
- $(ProjectDir)..\..\..\msvc\
+ $(ProjectDir)..\msvc\
Clean
MSB8012
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
- gmpd_winrt
- $(ProjectDir)..\..\..\msvc\
+ gmpd
+ $(ProjectDir)..\msvc\
Clean
MSB8012
- $(ProjectDir)..\..\..\msvc\
+ $(ProjectDir)..\msvc\
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
- libgmp
+ gmp
Clean
MSB8012
- $(ProjectDir)..\..\..\msvc\
+ $(ProjectDir)..\msvc\
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
- libgmp_winrt
+ gmp
Clean
MSB8012
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
libgmp
- $(ProjectDir)..\..\..\msvc\
+ $(ProjectDir)..\msvc\
Clean
MSB8012
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
- libgmp_winrt
- $(ProjectDir)..\..\..\msvc\
+ libgmp
+ $(ProjectDir)..\msvc\
Clean
MSB8012
- $(ProjectDir)..\..\..\msvc\
+ $(ProjectDir)..\msvc\
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
gmp
Clean
MSB8012
- $(ProjectDir)..\..\..\msvc\
+ $(ProjectDir)..\msvc\
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
- gmp_winrt
+ gmp
Clean
MSB8012
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
gmp
- $(ProjectDir)..\..\..\msvc\
+ $(ProjectDir)..\msvc\
Clean
MSB8012
$(SolutionDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\
- gmp_winrt
- $(ProjectDir)..\..\..\msvc\
+ gmp
+ $(ProjectDir)..\msvc\
Clean
MSB8012
diff --git a/gmp.pc.in b/gmp.pc.in
index bf1c799ad..d0c81be91 100644
--- a/gmp.pc.in
+++ b/gmp.pc.in
@@ -8,4 +8,4 @@ Description: GNU Multiple Precision Arithmetic Library
URL: https://gmplib.org
Version: @PACKAGE_VERSION@
Cflags: -I${includedir}
-Libs: -L${libdir} -lgmp
+Libs: -L${libdir} @LIBS@
diff --git a/gmpxx.pc.in b/gmpxx.pc.in
index 181cc70c6..2b697ceab 100644
--- a/gmpxx.pc.in
+++ b/gmpxx.pc.in
@@ -9,4 +9,4 @@ URL: https://gmplib.org
Version: @PACKAGE_VERSION@
Requires: gmp
Cflags: -I${includedir}
-Libs: -L${libdir} -lgmpxx
+Libs: -L${libdir} @LIBS@