summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2015-11-18 14:47:38 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commit25ccacc72f00d786c2c2fc70057b2a5029230c92 (patch)
tree15cc2ee422dd8e6ce5b8a77a7fd859f1942b610a
parentf21ae975846cda9de7916e2d2c19068533e924be (diff)
downloadslackbuilds-25ccacc72f00d786c2c2fc70057b2a5029230c92.tar.gz
academic/EMBASSY: Fix build with gcc5.
Signed-off-by: David Spencer <baildon.research@googlemail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--academic/EMBASSY/EMBASSY.SlackBuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/academic/EMBASSY/EMBASSY.SlackBuild b/academic/EMBASSY/EMBASSY.SlackBuild
index a5fd088e4d..67e2ea8471 100644
--- a/academic/EMBASSY/EMBASSY.SlackBuild
+++ b/academic/EMBASSY/EMBASSY.SlackBuild
@@ -367,8 +367,9 @@ make install DESTDIR=$PKG
# Build VIENNA
cd $TMP/$PRGNAM-$VERSION/$VIENNA
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+# -std=gnu89 fixes build with gcc-5.2 (inline functions HairpinE and LoopEnergy)
+CFLAGS="$SLKCFLAGS -std=gnu89" \
+CXXFLAGS="$SLKCFLAGS -std=gnu89" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \