gpg4libre: have gcc-wrapper handle linking properly

Change-Id: I83305f504f7d492195f07f11f06d2c9855d92400
Reviewed-on: https://gerrit.libreoffice.org/42441
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
This commit is contained in:
David Ostrovsky
2017-09-19 01:20:04 +02:00
committed by Thorsten Behrens
parent 7d5245848c
commit bef91f7e5f

View File

@@ -142,7 +142,7 @@ string processccargs(vector<string> rawargs) {
else if(!(*i).compare(0,2,"-L")) {
linkargs.append(" -LIBPATH:"+(*i).substr(2));
}
else if(!(*i).compare(0,2,"-l")) {
else if(!(*i).compare(0,2,"-l") && (*i).compare(0,5,"-link")) {
linkargs.append(" "+(*i).substr(2)+".lib");
}
else if(!(*i).compare(0,5,"-def:") || !(*i).compare(0,5,"/def:")) {