diff options
author | Daniel Bermond | 2017-07-20 22:54:00 -0300 |
---|---|---|
committer | Daniel Bermond | 2017-07-20 22:54:00 -0300 |
commit | 96893314469ea97157096e241a65dbdad5d3f850 (patch) | |
tree | f3261b91be12414220227ef3ba311111621911b3 /PKGBUILD | |
parent | 2b189fb8a05381192754db1d9e5ddf0459d6ccf0 (diff) | |
download | aur-96893314469ea97157096e241a65dbdad5d3f850.tar.gz |
Fix build flags to work with gcc5
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -23,7 +23,7 @@ _protobuf_version='3.1.0' # commit 'a428e42072765993ff674fda72863c9f1aa2d268' is pkgname=caffe2 pkgver=0.7.0 -pkgrel=12 +pkgrel=13 pkgdesc='A new lightweight, modular, and scalable deep learning framework (gpu enabled)' arch=('x86_64') url='http://caffe2.ai/' @@ -158,7 +158,9 @@ build() { -DCMAKE_BUILD_TYPE:STRING='Release' \ -DCMAKE_COLOR_MAKEFILE:BOOL='ON' \ -DCMAKE_CXX_COMPILER='/usr/bin/g++-5' \ + -DCMAKE_CXX_FLAGS:STRING="$(printf '%s' "$CXXFLAGS" | sed 's/-fno-plt//')" \ -DCMAKE_C_COMPILER='/usr/bin/gcc-5' \ + -DCMAKE_C_FLAGS:STRING="$(printf '%s' "$CFLAGS" | sed 's/-fno-plt//')" \ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \ -DCMAKE_SKIP_INSTALL_RPATH:BOOL='NO' \ -DCMAKE_SKIP_RPATH:BOOL='NO' \ |