diff --git a/Makefile.system b/Makefile.system index 1b8c9b476..58d53e34e 100644 --- a/Makefile.system +++ b/Makefile.system @@ -65,6 +65,10 @@ ifeq ($(DEBUG), 1) GETARCH_FLAGS += -g endif +ifeq ($(HOSTCC), loongcc) +GETARCH_FLAGS += -static +endif + # This operation is expensive, so execution should be once. ifndef GOTOBLAS_MAKEFILE export GOTOBLAS_MAKEFILE = 1