summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2017-07-20 22:45:02 -0300
committerDaniel Bermond2017-07-20 22:45:02 -0300
commite609e06192a521c2fa689fb66c038501a0b977be (patch)
tree602efbc52c93bf6335b9ee5198aef074c6637810
parenta0940dca0c8bbc61455e94aff37aa6fe29af0630 (diff)
downloadaur-e609e06192a521c2fa689fb66c038501a0b977be.tar.gz
Fix build flags to work with gcc5
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD6
2 files changed, 7 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0e21e664491..9e0908cbf9f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Fri Jul 21 01:35:55 UTC 2017
+# Fri Jul 21 01:44:53 UTC 2017
pkgbase = caffe2-git
pkgdesc = A new lightweight, modular, and scalable deep learning framework (git version, gpu enabled)
- pkgver = 0.7.0.r657.ga01c46a7
- pkgrel = 2
+ pkgver = 0.7.0.r686.gb8f66c1c
+ pkgrel = 1
url = http://caffe2.ai/
arch = x86_64
license = BSD
diff --git a/PKGBUILD b/PKGBUILD
index 7497d333182..64d94ad5b2b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer : Daniel Bermond < yahoo-com: danielbermond >
pkgname=caffe2-git
-pkgver=0.7.0.r657.ga01c46a7
-pkgrel=2
+pkgver=0.7.0.r686.gb8f66c1c
+pkgrel=1
pkgdesc='A new lightweight, modular, and scalable deep learning framework (git version, gpu enabled)'
arch=('x86_64')
url='http://caffe2.ai/'
@@ -133,7 +133,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' \