This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libpthread linkage


Alexandre Oliva wrote:

> > Actually, this seems to do the trick:
>
> I'd think it's
> enough to have the thread library linked in by means of the gc
> library's LIBADD automake directive.

Yep, that works too. Hows this? We should probibly do the same thing in
libjava.

regards

  [ bryce ]

2000-12-30  Bryce McKinlay  <bryce@albatross.co.nz>

	* Makefile.am (libgcjgc_la_LIBADD): Add $(THREADLIB) to LIBADD
	directive. 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 05:18:02
@@ -32,7 +32,7 @@
 misc.c new_hblk.c obj_map.c os_dep.c pcr_interface.c ptr_chck.c	\
 real_malloc.c reclaim.c solaris_pthreads.c solaris_threads.c \
 solaris_threads.h stubborn.c typd_mlc.c version.h weakpointer.h
-libgcjgc_la_LIBADD = @addobjs@
+libgcjgc_la_LIBADD = @addobjs@ $(THREADLIB)
 libgcjgc_la_DEPENDENCIES = @addobjs@
 libgcjgc_la_LDFLAGS = -version-info 1:1:0 -rpath $(toolexeclibdir)
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]