summaryrefslogtreecommitdiff
path: root/gtests/common
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2020-05-05 12:29:29 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2020-05-05 12:29:29 +0000
commit77559593f704b95bcbd14776f6dbf63b293b3b7c (patch)
tree58007f0f966a0290e6c2a415513eeff2f9dd3973 /gtests/common
parent880e1e1521f837149841c7bf5e09a6cc30bffa03 (diff)
downloadnss-hg-77559593f704b95bcbd14776f6dbf63b293b3b7c.tar.gz
Bug 290526 Fix gtests build for WIN% targets r=rrelyea
The google_test gtest build doesn't provide any exports for the shared library on Windows and the gyp build also builds just a static library. So build gtest and gtestutil libraries as static. For whatever reason, the Windows linker doesn't find the main function inside the gtestutil library, if we don't tell it to build a console executable. But linking works fine, if the object file is used directly. But since we can have different main() objects based on build flags, we enforce building console applications binaries. Differential Revision: https://phabricator.services.mozilla.com/D70665
Diffstat (limited to 'gtests/common')
-rw-r--r--gtests/common/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtests/common/Makefile b/gtests/common/Makefile
index e17bc282c..1476e45df 100644
--- a/gtests/common/Makefile
+++ b/gtests/common/Makefile
@@ -20,6 +20,9 @@ include $(CORE_DEPTH)/coreconf/config.mk
# (3) Include "component" configuration information. (OPTIONAL) #
#######################################################################
+SHARED_LIBRARY = $(NULL)
+IMPORT_LIBRARY = $(NULL)
+
#######################################################################
# (4) Include "local" platform-dependent assignments (OPTIONAL). #
#######################################################################