From aac6e800eb7107cabc2021a2726897ae557b87dc Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Wed, 20 Jan 2016 00:12:42 +0100 Subject: [PATCH] Import libraries for Intel Fortran --- demos/fortran/foo.def | 2 ++ demos/fortran/wscript | 1 + waflib/Tools/ifort.py | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 demos/fortran/foo.def diff --git a/demos/fortran/foo.def b/demos/fortran/foo.def new file mode 100644 index 00000000..08acdb13 --- /dev/null +++ b/demos/fortran/foo.def @@ -0,0 +1,2 @@ +EXPORTS + FOO diff --git a/demos/fortran/wscript b/demos/fortran/wscript index 5beb580c..639b3ae9 100644 --- a/demos/fortran/wscript +++ b/demos/fortran/wscript @@ -44,6 +44,7 @@ def build(bld): features = 'fc fcshlib', source = 'foo.f', target = 'shlib1', + defs = 'foo.def', vnum = '2.3.9') bld( diff --git a/waflib/Tools/ifort.py b/waflib/Tools/ifort.py index 8eae7192..d97abf97 100644 --- a/waflib/Tools/ifort.py +++ b/waflib/Tools/ifort.py @@ -33,7 +33,9 @@ def ifort_modifier_win32(self): v.FCLNK_TGT_F = '/out:' v.FC_TGT_F = ['/c', '/o', ''] v.FCFLAGS_fcshlib = '' + v.LINKFLAGS_fcshlib = '/DLL' v.AR_TGT_F = '/out:' + v.IMPLIB_ST = '/IMPLIB:%s' v.append_value('LINKFLAGS', '/subsystem:console') if v.IFORT_MANIFEST: