Skip to content

Commit aeff08f

Browse files
Sergei Trofimovichaquynh
authored andcommitted
capstone.pc.in: use CMAKE_INSTALL_LIBDIR for libdir (#1659)
On x86_64-linux gentoo system capstone was installing it's files to 'lib64' libdir, but was referring 'lib' libdir: ``` $ cat /usr/lib64/pkgconfig/capstone.pc ... libdir=${prefix}/lib ... ``` On radare2 built it means injecting -L/usr/lib into a 64-build and pulling in 32-bit libraries. 'ld.lld' is not able to resolve the ambiguity. It happens because @LIBSUFFIX@ is not present in cmake-3.17.3. Let's fix the paths by using @CMAKE_INSTALL_LIBDIR@. This variable is already used in capstone's build system, thus should be safe to rely on. Reported-by: Agostino Sarubbo Bug: https://bugs.gentoo.org/730722 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
1 parent 2edae85 commit aeff08f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

capstone.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
prefix=@CMAKE_INSTALL_PREFIX@
22
exec_prefix=${prefix}
3-
libdir=${prefix}/lib@LIBSUFFIX@
3+
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
44
includedir=${prefix}/include/capstone
55

66
Name: capstone

0 commit comments

Comments
 (0)