Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions srcs/src.blank/Makevars
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
PKG_CFLAGS=-m64 -fPIC -fno-strict-aliasing
PKG_CPPFLAGS=-I${CPLEX_DIR}/cplex/include
PKG_LIBS=-lm -lpthread
ARCH := $(shell uname -m)

ifeq ($(strip $(ARCH)),aarch64) # Ensure no whitespace or newline issues
PKG_CFLAGS=-fPIC -fno-strict-aliasing
PKG_LIBS=-lm -lpthread
else
PKG_CFLAGS=-m64 -fPIC -fno-strict-aliasing
PKG_LIBS=-lm -lpthread
endif

PKG_CPPFLAGS=-I$(CPLEX_DIR)/cplex/include