This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: libpthread linkage
- To: java-discuss at sources dot redhat dot com
- Subject: Re: libpthread linkage
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Sat, 30 Dec 2000 17:41:06 +1300
- References: <3A4D640E.89145770@albatross.co.nz>
Bryce McKinlay wrote:
> Why is this? How can we make sure that the GC's threads code picks up
> the correct semaphore functions?
Actually, this seems to do the trick:
2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
* Makefile.am (LINK: Add $(THREADLIB) to libtool command line. This
ensures that we link the correct version of the linuxthreads semaphore
functions.
* Makefile.in: Rebuilt.
Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/egcs/boehm-gc/Makefile.am,v
retrieving revision 1.17
diff -u -r1.17 Makefile.am
--- Makefile.am 2000/12/12 20:52:54 1.17
+++ Makefile.am 2000/12/30 04:36:57
@@ -64,7 +64,7 @@
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(MY_CFLAGS) $(BOEHM_GC_CFLAGS)
-LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
+LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) $(THREADLIB) -o $@
AM_CFLAGS = @BOEHM_GC_CFLAGS@