From 820ca4b34c23ef8d91edade437f0f9fd781f8b89 Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 25 Oct 2001 23:51:53 +0000 Subject: * GNUmakefile (libwsock32): Add to linker flags for WSAGetLastError() and WSASetLastError(). * Makefile (wsock32.lib): Likewise. * create.c: Minor mostly inert changes. * implement.h (PTW32_MAX): Move into here and renamed from sched.h. (PTW32_MIN): Likewise. * GNUmakefile (TEST_ICE): Define if testing internal implementation of InterlockedCompareExchange. * Makefile (TEST_ICE): Likewise. * private.c (TEST_ICE): Likewise. --- GNUmakefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 60bee78..2ae35f9 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -32,8 +32,11 @@ CXX = g++ AR = ar OPT = -O3 +#OPT = -O3 -DTEST_ICE #OPT = -O2 -DNDEBUG -finline-functions +LFLAGS = -lwsock32 + GC_CFLAGS = -D__CLEANUP_C GCE_CFLAGS = -D__CLEANUP_CXX -x c++ -mthreads @@ -88,11 +91,11 @@ tests: $(GC_DLL): $(OBJS) - $(CC) $(OPT) -shared -o $@ $^ + $(CC) $(OPT) -shared -o $@ $^ $(LFLAGS) dlltool -k --dllname $@ --output-lib $(GC_LIB) --def pthread.def $(GCE_DLL): $(OBJS) - $(CXX) $(OPT) -mthreads -shared -o $@ $^ + $(CXX) $(OPT) -mthreads -shared -o $@ $^ $(LFLAGS) dlltool -k --dllname $@ --output-lib $(GCE_LIB) --def pthread.def clean: -- cgit v1.2.3