Change prefix to the missing headers on el7
Change-Id: I79d59104a224ccf51795072e2a12da1a113cdaa0
Signed-off-by: Wei Liu <wei3.liu@intel.com>
Reviewed-on: https://review.whamcloud.com/25606
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Minh Diep <minh.diep@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
[[ -f $TEST_BIN ]] && rm -f $TEST_BIN
[[ -d $INSTALL_DIR ]] && rm -rf $INSTALL_DIR
- if egrep -q "CentOS|Red Hat|Fedora" /etc/issue; then
+ if egrep -q "CentOS|Red Hat|Fedora" /etc/redhat-release; then
local prefix=/usr/lib/$(uname -m)-redhat-linux5E
if egrep -q "Fedora" /etc/issue; then
prefix=/usr/arm-gp2x-linux
fi
-
+ if grep -q "el7" <<<$(uname -r); then
+ # Fix LU-9102
+ prefix=/usr/local/lib/x86_64-redhat-linux5E
+ fi
[[ -d /usr/include/bits ]] || mkdir -p /usr/include/bits
[[ -d /usr/include/sys ]] || mkdir -p /usr/include/sys
[[ -s /usr/include/stropts.h ]] ||