From 06ee638a61afdb86a0bb64e3afe24abed5304ae2 Mon Sep 17 00:00:00 2001 From: zhgzhg Date: Tue, 23 Aug 2022 23:16:24 +0300 Subject: [PATCH] Make it compilable under mingw --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 5f49e7a..1afe207 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,12 @@ else ifneq (, $(findstring armv, $(MACHINE))) MACHINE := arm endif + CFLAGS := -shared + + ifdef MINGW_PACKAGE_PREFIX + CFLAGS := $(CFLAGS) -lucrtbase + endif endif libdir = $(libdir.$(MACHINE))/geany