mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
academic/primer3: Respect our CFLAGS, added -fpermissive.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
ea7af30af3
commit
756d225db6
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue