Only compile x86 arch of Capstone for x86 target

This commit is contained in:
M. Mert Yildiran 2022-06-13 13:14:33 +03:00
parent cd61f18f3f
commit 35973326d1
No known key found for this signature in database
GPG Key ID: D42ADB236521BF7A

View File

@ -35,7 +35,7 @@ WORKDIR /
RUN curl https://github.com/capstone-engine/capstone/archive/4.0.2.tar.gz -Lo ./capstone.tar.gz \
&& tar -xzf capstone.tar.gz && mv ./capstone-* ./capstone
WORKDIR /capstone
RUN ./make.sh \
RUN CAPSTONE_ARCHS="x86" CAPSTONE_STATIC=yes ./make.sh \
&& cp /capstone/libcapstone.a /usr/local/musl/lib/gcc/x86_64-unknown-linux-musl/*/
# Install eBPF related dependencies