# Makevars for shard package (Unix/Linux/macOS)
#
# This file configures compilation for the shared memory backend.
# On macOS, shm_open is in libc so no extra linking is needed.
# On Linux, you may need to add -lrt to PKG_LIBS if you get linking errors.

PKG_CFLAGS = $(C_VISIBILITY)
# -D_GNU_SOURCE: exposes CPU affinity APIs from <sched.h> on glibc Linux.
# -DUSE_FC_LEN_T: required for F77_CALL(dgemm) with FCONE (WRE 6.6.1).
PKG_CPPFLAGS = -D_GNU_SOURCE -DUSE_FC_LEN_T
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
