diff options
| author | ruki <[email protected]> | 2021-09-16 20:55:57 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-16 20:55:57 +0800 |
| commit | 388ee60e90ade5ff712314d96036bbb3e789a3ea (patch) | |
| tree | 9ffed2624f209252129bb6052abea753941120ed /xmake/modules/core/tools/gcc.lua | |
| parent | 646b616d40835ef4c882f15df1f15574af2cfe58 (diff) | |
| parent | 8e41cd06d4f77d7a3f8544be7d719ea399412d93 (diff) | |
Merge pull request #1675 from xmake-io/mingw
improve mingw implib
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 89b732ec9..713cd80aa 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -334,7 +334,7 @@ function linkargv(self, objectfiles, targetkind, targetfile, flags, opt) -- add `-Wl,--out-implib,outputdir/libxxx.a` for xxx.dll on mingw/gcc if targetkind == "shared" and is_plat("mingw") then - table.insert(flags_extra, "-Wl,--out-implib," .. path.join(path.directory(targetfile), path.basename(targetfile) .. ".lib")) + table.insert(flags_extra, "-Wl,--out-implib," .. path.join(path.directory(targetfile), path.basename(targetfile) .. ".dll.a")) end -- init arguments |
