From 030c721ca3cb3f627f72d6b1073e93a33b0d3d8c Mon Sep 17 00:00:00 2001 From: Julian Hofer Date: Mon, 22 Jun 2020 15:33:08 +0200 Subject: [PATCH] Handle gfortran+windows+shared-lib case correctly --- pymake/pymake.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pymake/pymake.py b/pymake/pymake.py index 01352640..13e9c77c 100644 --- a/pymake/pymake.py +++ b/pymake/pymake.py @@ -1156,7 +1156,10 @@ def pymake_compile(srcfiles, target, fc, cc, else: if sharedobject: ext = os.path.splitext(target)[-1].lower() - if ext != '.so': + if sys.platform == 'win32': + if ext != '.dll': + target += '.dll' + elif ext != '.so': target += '.so' # initialize the commands and object files list