Commit Graph

8 Commits

Author SHA1 Message Date
Mario Haustein
9d2b6ce4f1
Fix pkg-config template 2022-04-30 13:06:30 +02:00
Nguyen Anh Quynh
6656bcb63a revert #1276 2022-01-26 12:34:43 +08:00
pancake
a7c1ecde05
Add the archs variable in the pkg-config file (#1828)
Usage:
 $ pkg-config --variable=archs capstone
 arm aarch64 m68k mips powerpc sparc systemz x86
 xcore tms320c64x m680x evm riscv mos65xx wasm bpf

Co-authored-by: pancake <pancake@nopcode.org>
2022-01-25 09:15:59 +08:00
Sergei Trofimovich
34e57eedf3 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>
2020-07-19 17:08:47 +08:00
ael
0a39b785d3 fix include path in pkg-config template (#1276) 2018-10-23 19:42:01 -03:00
Fernie
a1eeb6fdfa fixed hardcoded paths with variables. (#1018)
* fixed hardcoded paths with variables.

cmake pkg-config file fixed hardcoded paths with variables. CMakeLists.txt line 394 needs to be modified
> configure_file("capstone.pc.in" "capstone.pc" @ONLY)

* forgot to add 64bit support variable.
2017-09-27 09:31:42 +08:00
Nguyen Anh Quynh
bc0e173dab CMake: fix pkgconfig file 2017-04-30 23:20:08 +08:00
Gabor Buella
b9a2c1a73c cmake: install pkg config file 2017-04-30 23:19:54 +08:00