summaryrefslogtreecommitdiff
path: root/academic/primer3
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2017-07-28 09:37:19 +0200
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:54:36 -0500
commit756d225db64e5a6a8c810d5838d8c4656dce566c (patch)
tree8605fff1195b6a4ddbdf2a5d14af45660ed5a73b /academic/primer3
parentea7af30af33a159d85a8727ccdc4e6b5d4e165f8 (diff)
downloadslackbuilds-756d225db64e5a6a8c810d5838d8c4656dce566c.tar.gz
academic/primer3: Respect our CFLAGS, added -fpermissive.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'academic/primer3')
-rw-r--r--academic/primer3/primer3.SlackBuild4
1 files changed, 1 insertions, 3 deletions
diff --git a/academic/primer3/primer3.SlackBuild b/academic/primer3/primer3.SlackBuild
index d3ae1b399c..514f65fd23 100644
--- a/academic/primer3/primer3.SlackBuild
+++ b/academic/primer3/primer3.SlackBuild
@@ -75,13 +75,11 @@ patch -p1 -i $CWD/gcc-7.patch
cd ./src
# Use our CFLAGS
-sed -i "/^CFLAGS/s/=/+=/" Makefile
+sed -i -e "s|-O2|$SLKCFLAGS|" -e "s|-g -Wall|-fpermissive|" Makefile
# Look for configuration files in /usr/share instead of /opt
sed -i "s:/opt/primer3_config:/usr/share/$PRGNAM/primer3_config:g" thal_main.c primer3_boulder_main.c
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
make
# This is recommended, but the tests take a really long time. Be patient