From a7c1ecde05a6397b120512c440d47407a365a1ad Mon Sep 17 00:00:00 2001 From: pancake Date: Tue, 25 Jan 2022 02:15:59 +0100 Subject: [PATCH] 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 --- Makefile | 1 + capstone.pc.in | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile b/Makefile index ade74fe53..942dcca47 100644 --- a/Makefile +++ b/Makefile @@ -609,4 +609,5 @@ define generate-pkgcfg echo 'archive=$${libdir}/libcapstone.a' >> $(PKGCFGF) echo 'Libs: -L$${libdir} -lcapstone' >> $(PKGCFGF) echo 'Cflags: -I$${includedir}' >> $(PKGCFGF) + echo 'archs: ${CAPSTONE_ARCHS}' >> $(PKGCFGF) endef diff --git a/capstone.pc.in b/capstone.pc.in index b8ea3d30a..ea52256b6 100644 --- a/capstone.pc.in +++ b/capstone.pc.in @@ -10,3 +10,4 @@ URL: http://www.capstone-engine.org archive=${libdir}/libcapstone.a Libs: -L${libdir} -lcapstone Cflags: -I${includedir} +archs=@CAPSTONE_ARCHITECTURES@