Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Commit

Permalink
Only apply PKG_CONFIG_PATH on centos and rocky 8
Browse files Browse the repository at this point in the history
  • Loading branch information
hspark0582 committed Oct 13, 2022
1 parent 13e44dc commit f4c4f86
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions script/build_ibofos.sh
Expand Up @@ -3,6 +3,8 @@
# build_ibofos.sh
#

source /etc/os-release

rootdir=$(readlink -f $(dirname $0))/..
BUILD_INTERNAL=FALSE
BUILD_ASAN=n
Expand All @@ -25,7 +27,12 @@ build_pos()
else
./configure --without-asan
fi
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig make -j 8

if echo "$ID $VERSION_ID" | grep -E -q 'centos 8|rocky 8'; then
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig
fi

make -j 8
}

while getopts "i" opt
Expand All @@ -36,4 +43,5 @@ do
esac
done

build_pos
build_pos

0 comments on commit f4c4f86

Please sign in to comment.