From 88220118272c5af7bef17a8656a870c376c19665 Mon Sep 17 00:00:00 2001 From: Alex Petty Date: Thu, 9 Nov 2023 13:38:28 -0600 Subject: [PATCH] I guess that non-apple clang supports -fopenmp --- recipes/susiex/build.sh | 1 - recipes/susiex/portable_makefile.patch | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/recipes/susiex/build.sh b/recipes/susiex/build.sh index 898bc110c2397d..ec2dc8af4fee86 100644 --- a/recipes/susiex/build.sh +++ b/recipes/susiex/build.sh @@ -3,5 +3,4 @@ mkdir -p $PREFIX/bin cd src -make LDFLAGS="-L$PREFIX/lib -O3 -flto" cp ../bin/SuSiEx $PREFIX/bin/SuSiEx diff --git a/recipes/susiex/portable_makefile.patch b/recipes/susiex/portable_makefile.patch index ac1210ee54f16c..54f0877c3765bb 100644 --- a/recipes/susiex/portable_makefile.patch +++ b/recipes/susiex/portable_makefile.patch @@ -11,8 +11,8 @@ index 2f32523..a5057a8 100644 +UNAME_S := $(shell uname -s) + +ifeq ($(UNAME_S),Darwin) -+ CXXFLAGS+=-Xpreprocessor -fopenmp -+ LDLIBS+=-lomp ++ CXXFLAGS+=-fopenmp ++ LDLIBS+=-fopenmp +else + CXXFLAGS=-fopenmp + LDFLAGS+=-fopenmp