mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-27 23:40:25 +00:00
make.sh: only handle special pkgconfig install for OSX if we are not installing in Brew env
This commit is contained in:
parent
1efa9c11a0
commit
ac673ae544
3
make.sh
3
make.sh
@ -36,7 +36,8 @@ function install {
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
# find the directory automatically, so we can support both Macport & Brew
|
||||
PKGCFGDIR="$(pkg-config --variable pc_path pkg-config | cut -d ':' -f 1)"
|
||||
if [ ${PKGCFGDIR}x != x ]; then
|
||||
# set PKGCFGDIR only in non-Brew environment & pkg-config is available
|
||||
if [ "$HOMEBREW_CAPSTONE" != "1" ] && [ ${PKGCFGDIR}x != x ]; then
|
||||
if [ ${CC}x != x ]; then
|
||||
${MAKE} CC=$CC PKGCFGDIR=$PKGCFGDIR install
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user