summaryrefslogtreecommitdiff
path: root/Makefile.direct
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2019-07-26 21:35:30 +0300
committerIvan Maidanski <ivmai@mail.ru>2019-07-26 21:35:30 +0300
commitf5e4d83800cc43b0874a6ceccd686a597b64d443 (patch)
tree1557d91ef773fc28146b77ed49cb9c7934000edc /Makefile.direct
parentffd39036002e6ecdd69a1ebe327a0db039149c9b (diff)
downloadbdwgc-f5e4d83800cc43b0874a6ceccd686a597b64d443.tar.gz
Fix test_cpp failure caused by arbitrary link order (Win32)
(fix of commit 4a08ae983) * Makefile.direct (test_cpp): Pass -D GC_NOT_DLL to $(CC) (except for HP UX case). * configure.ac [($enable_shared=no || $enable_static=yes) && $host=*-*-cygwin*|*-*-mingw*|*-*-msys*] (CXXFLAGS): Add -D GC_NOT_DLL; add comment.
Diffstat (limited to 'Makefile.direct')
-rw-r--r--Makefile.direct2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.direct b/Makefile.direct
index 8e6d9f41..9c3c078a 100644
--- a/Makefile.direct
+++ b/Makefile.direct
@@ -229,7 +229,7 @@ test_cpp$(EXEEXT): $(srcdir)/tests/test_cpp.cc $(srcdir)/include/gc_cpp.h \
$(srcdir)/include/gc.h c++ base_lib $(UTILS)
rm -f test_cpp$(EXEEXT)
./if_mach HP_PA HPUX $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/tests/test_cpp.cc gc.a gccpp.a -ldld `./threadlibs`
- ./if_not_there test_cpp$(EXEEXT) || $(CXX) $(CXXFLAGS) -o test_cpp$(EXEEXT) $(srcdir)/tests/test_cpp.cc gc.a gccpp.a `./threadlibs`
+ ./if_not_there test_cpp$(EXEEXT) || $(CXX) $(CXXFLAGS) -DGC_NOT_DLL -o test_cpp$(EXEEXT) $(srcdir)/tests/test_cpp.cc gc.a gccpp.a `./threadlibs`
check-cpp: test_cpp$(EXEEXT)
./test_cpp