summaryrefslogtreecommitdiff
path: root/cppunit
diff options
context:
space:
mode:
authortono <tono@openoffice.org>2010-06-15 22:33:46 +0900
committertono <tono@openoffice.org>2010-06-15 22:33:46 +0900
commit8b741ce734483fc7e463de71451009b948aaa911 (patch)
tree7f5d881b3c8717afd0a8590c5a282bdd256393b5 /cppunit
parent22830eb689573c72eb17b8efd86f1efe48d2fbd5 (diff)
i#111958: MinGW port enhancement: runtime-pseude-reloc-v2 relevant fix
Diffstat (limited to 'cppunit')
-rw-r--r--cppunit/makefile.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/cppunit/makefile.mk b/cppunit/makefile.mk
index 0ec7fcb696d6..883a83ff2317 100644
--- a/cppunit/makefile.mk
+++ b/cppunit/makefile.mk
@@ -40,7 +40,8 @@ PATCH_FILES = solarisfinite.patch warnings.patch windows.patch ldflags.patch
# warnings.patch: see <https://sourceforge.net/tracker/?func=detail&
# aid=2912630&group_id=11795&atid=311795>
-.IF "$(OS)" == "WNT" && "$(COM)" == "MSC"
+.IF "$(OS)" == "WNT"
+.IF "$(COM)" == "MSC"
# On Windows, CppUnit appears to support either the Unix-style configure/make
# approach with cygwin and gcc (and libtool fails miserably if gcc is replaced
@@ -70,11 +71,12 @@ OUTDIR2INC = include/cppunit
$(PACKAGE_DIR)/$(CONFIGURE_FLAG_FILE): ooo-cppunit_dll.mk ooo-DllPlugInTester.mk
.ELSE
-
-.IF "$(OS)" == "WNT"
+.IF "$(COM)" == "GCC"
EXTRA_CFLAGS += -mthreads
LDFLAGS += -Wl,--enable-runtime-pseudo-reloc-v2
-.ENDIF
+.ENDIF # "$(COM)" == "GCC"
+.ENDIF # "$(COM)" == "MSC"
+.ELSE
.IF "$(USE_SYSTEM_STL)" != "YES"