BIGTOP-2721. libsnappy reference path is not correct for hadoop/ubuntu16 build
authorJun He <jun.he@linaro.org>
Mon, 27 Mar 2017 16:49:43 +0000 (09:49 -0700)
committerRoman Shaposhnik <rvs@apache.org>
Mon, 27 Mar 2017 16:49:43 +0000 (09:49 -0700)
bigtop-packages/src/common/hadoop/do-component-build

index f7b6308..32429c2 100644 (file)
@@ -47,6 +47,7 @@ fi
 if [ -z "$BUNDLE_SNAPPY" ] ; then
   [ -f /usr/lib/libsnappy.so ] && BUNDLE_SNAPPY="-Dsnappy.prefix=x -Dbundle.snappy=true -Dsnappy.lib=/usr/lib"
   [ -f /usr/lib64/libsnappy.so ] && BUNDLE_SNAPPY="-Dsnappy.prefix=x -Dbundle.snappy=true -Dsnappy.lib=/usr/lib64"
+  [ -f /usr/lib/${HOSTTYPE}-linux-gnu/libsnappy.so ] && BUNDLE_SNAPPY="-Dsnappy.prefix=x -Dbundle.snappy=true -Dsnappy.lib=/usr/lib/${HOSTTYPE}-linux-gnu"
 fi
 
 mkdir build