Skip to content

Commit

Permalink
math/csdp: Fix build on 14-CURRENT
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Dec 7, 2021
1 parent 715f654 commit c302a18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion math/csdp/files/patch-Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
- replacement of -ansi with -std=c99 is to work around https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260136

--- Makefile.orig 2017-07-25 18:44:57 UTC
+++ Makefile
@@ -11,11 +11,11 @@
#
# CFLAGS settings for 64 bit Linux/unix systems.
#
-export CFLAGS=-m64 -march=native -mtune=native -Ofast -fopenmp -ansi -Wall -DBIT64 -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include
+CFLAGS=$(FREEBSD_CFLAGS) -fopenmp -ansi -Wall -DBIT64 -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include
+CFLAGS=$(FREEBSD_CFLAGS) -fopenmp -std=c99 -Wall -DBIT64 -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include
#
# LIBS settings for 64 bit Linux/unix systems.
#
Expand Down

0 comments on commit c302a18

Please sign in to comment.