Skip to content

Commit

Permalink
makefile: try different specification of libomp path
Browse files Browse the repository at this point in the history
  • Loading branch information
nadimkobeissi committed Oct 11, 2023
1 parent 585a2bc commit 58374c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ TARGET_TEST := zkProverTest
BUILD_DIR := ./build
SRC_DIRS := ./src ./test ./tools

LIBOMP := $(shell find /usr/lib/llvm-14/lib/ -name "libomp.so" | find /usr/lib64 -name "libomp.so" | sed 's/libomp.so//')

GRPCPP_FLAGS := $(shell pkg-config grpc++ --cflags)
GRPCPP_LIBS := $(shell pkg-config grpc++ --libs) -lgrpc++_reflection
ABSL_LIBS := $(shell pkg-config absl_log_internal_check_op --libs)
Expand All @@ -19,7 +17,7 @@ endif
CXX := g++
AS := nasm
CXXFLAGS := -std=c++17 -Wall -pthread -flarge-source-files -Wno-unused-label -rdynamic -mavx2 $(GRPCPP_FLAGS) #-Wfatal-errors
LDFLAGS := -lprotobuf -lsodium -lgpr -lpthread -lpqxx -lpq -lgmp -lstdc++ -lgmpxx -lsecp256k1 -lcrypto -luuid -fopenmp -lomp $(GRPCPP_LIBS) $(ABSL_LIBS) -L$(LIBOMP)
LDFLAGS := -lprotobuf -lsodium -lgpr -lpthread -lpqxx -lpq -lgmp -lstdc++ -lgmpxx -lsecp256k1 -lcrypto -luuid -fopenmp -liomp5 $(GRPCPP_LIBS) $(ABSL_LIBS)
CFLAGS := -fopenmp
ASFLAGS := -felf64

Expand Down

0 comments on commit 58374c5

Please sign in to comment.