diff options
author | Pjotr Prins | 2020-11-29 10:56:22 +0000 |
---|---|---|
committer | Pjotr Prins | 2020-11-29 10:56:22 +0000 |
commit | 00480e8549987b6cae7100b28bcead2a2d501177 (patch) | |
tree | 98fa8d71e773faecedd360758b1050beb57c193b /Makefile | |
parent | 235420546bf83bdeb91a654dc6daabdcffd6210f (diff) | |
download | pangemma-00480e8549987b6cae7100b28bcead2a2d501177.tar.gz |
Fix static build
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -23,6 +23,10 @@ # # make static # +# Static build may require some extra flags +# +# make WITH_GFORTRAN=1 EXTRA_FLAGS=-L/gnu/store/741057r2x06zwg6zcmqmdyv51spm6n9i-gfortran-7.5.0-lib/lib static +# # Run tests with # # make check @@ -72,6 +76,7 @@ WITH_GFORTRAN = # Add -lgfortran (if OpenBlas does not OPENBLAS_LEGACY = # Using older OpenBlas FORCE_STATIC = # Static linking of libraries GCC_FLAGS = -DHAVE_INLINE -pthread -Wall -std=gnu++11 # extra flags -Wl,--allow-multiple-definition +EXTRA_FLAGS = GSL_INCLUDE_PATH = ifeq ($(SYS), WIN) @@ -172,6 +177,9 @@ endif ifdef WITH_GFORTRAN LIBS += -lgfortran -lquadmath endif +ifdef EXTRA_FLAGS + LIBS += $(EXTRA_FLAGS) +endif .PHONY: all test |