diff options
author | Daniel Bermond | 2017-07-20 23:28:39 -0300 |
---|---|---|
committer | Daniel Bermond | 2017-07-20 23:28:39 -0300 |
commit | a68a5359c8249ab83ca361846879e4e689651f25 (patch) | |
tree | de1789e39003041aab893711bb1339ebdc25172c /PKGBUILD | |
parent | 5809034ea7d6b60e4ce8a8936c63b404239300e4 (diff) | |
download | aur-a68a5359c8249ab83ca361846879e4e689651f25.tar.gz |
Fix build flags to work with gcc5
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -4,8 +4,8 @@ pkgname=caffe-git _srcname=caffe -pkgver=1.0.r11.g91b09280f -pkgrel=2 +pkgver=1.0.r14.g4efdf7ee4 +pkgrel=1 pkgdesc="A deep learning framework made with expression, speed, and modularity in mind (git version, gpu enabled)" arch=('x86_64') url="http://caffe.berkeleyvision.org/" @@ -101,15 +101,21 @@ pkgver() { build() { cd "$pkgname" + _gcc5_cxxflags="$(printf '%s' "$CXXFLAGS" | sed 's/-fno-plt//')" + _gcc5_cflags="$( printf '%s' "$CFLAGS" | sed 's/-fno-plt//')" + msg2 "Building target 'all'..." - make all + CXXFLAGS="$_gcc5_cxxflags" CFLAGS="$_gcc5_cflags" make all + msg2 "Building target 'pycaffe'..." - make pycaffe - rm -rf doxygen + CXXFLAGS="$_gcc5_cxxflags" CFLAGS="$_gcc5_cflags" make pycaffe + msg2 "Building target 'docs'..." - make docs + rm -rf doxygen + CXXFLAGS="$_gcc5_cxxflags" CFLAGS="$_gcc5_cflags" make docs + msg2 "Building target 'distribute'..." - make distribute + CXXFLAGS="$_gcc5_cxxflags" CFLAGS="$_gcc5_cflags" make distribute } # uncomment this block if you want to run the checks/tests |