mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
Merge pull request #1034 from theopolis/fix_cmake_centos7
Build cmake with gcc to avoid gnu++1y
This commit is contained in:
commit
328bc062aa
@ -64,9 +64,6 @@ function main_centos() {
|
||||
package clang
|
||||
package clang-devel
|
||||
|
||||
set_cc clang
|
||||
set_cxx clang++
|
||||
|
||||
package bzip2
|
||||
package bzip2-devel
|
||||
package openssl-devel
|
||||
@ -76,6 +73,10 @@ function main_centos() {
|
||||
package libblkid-devel
|
||||
|
||||
install_cmake
|
||||
|
||||
set_cc clang
|
||||
set_cxx clang++
|
||||
|
||||
install_boost
|
||||
|
||||
if [[ $DISTRO = "centos6" ]]; then
|
||||
|
@ -18,8 +18,9 @@ function install_cmake() {
|
||||
tar -xf cmake-3.2.1.tar.gz
|
||||
fi
|
||||
log "building cmake"
|
||||
|
||||
pushd cmake-3.2.1
|
||||
./configure
|
||||
./bootstrap --prefix=/usr/local/
|
||||
make
|
||||
sudo make install
|
||||
popd
|
||||
|
Loading…
Reference in New Issue
Block a user