diff --git a/Makefile.system b/Makefile.system index 5f8c251b0..a69aa0464 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