From 756d225db64e5a6a8c810d5838d8c4656dce566c Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Fri, 28 Jul 2017 09:37:19 +0200 Subject: [PATCH] academic/primer3: Respect our CFLAGS, added -fpermissive. Signed-off-by: Matteo Bernardini --- academic/primer3/primer3.SlackBuild | 4 +--- 1 file changed, 1 insertion(+), 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