diff options
author | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2015-10-06 09:39:40 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2015-10-06 07:55:57 +0000 |
commit | 295a915b5ae66ad9485b38e7d05040cf0321cd4e (patch) | |
tree | e46467ad7f71ce6097b9ffc9b3adef9db4e3e744 /src/core/core_module.pro | |
parent | 2a972c4046bbee49ec9c770f2c1e12fb95500240 (diff) |
fix link error with MSVC
Since qtbase/e88334e0 we must not put MSVC linker flags into LIBS or
LIBS_PRIVATE. QMAKE_LFLAGS is the right place.
This fixes a build error with MSVC:
LINK : fatal error LNK1181: cannot open input file '\OPT:REF.obj'
Change-Id: I2971e412dd8d5cfe8b7aca218d679dd136019dd8
Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'src/core/core_module.pro')
-rw-r--r-- | src/core/core_module.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core_module.pro b/src/core/core_module.pro index cf253a735..68d46cd5a 100644 --- a/src/core/core_module.pro +++ b/src/core/core_module.pro @@ -22,7 +22,7 @@ osx { } else:msvc { # Simulate -whole-archive by passing the list of object files that belong to the public # API library as response file to the linker. - LIBS_PRIVATE += /OPT:REF + QMAKE_LFLAGS += /OPT:REF QMAKE_LFLAGS += @$${api_library_path}$${QMAKE_DIR_SEP}$${api_library_name}.lib.objects } else { LIBS_PRIVATE += -Wl,-whole-archive -l$$api_library_name -Wl,-no-whole-archive |