[m-dev.] trivial diff: change boehm_gc/Makefile to support -DLINUX_THREADS

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Sep 17 16:06:56 AEST 1999


Estimated hours taken: 0.25

boehm_gc/Makefile:
	Ensure that we link in the correct thread libraries, so that
	it still links properly if you enabled -DLINUX_THREADS.

Workspace: /usr/hg2/fjh/mercury
Index: boehm_gc/Makefile
===================================================================
RCS file: /home/mercury1/repository/mercury/boehm_gc/Makefile,v
retrieving revision 1.39
diff -u -r1.39 Makefile
--- boehm_gc/Makefile	1999/09/16 20:04:17	1.39
+++ boehm_gc/Makefile	1999/09/17 06:04:48
@@ -297,13 +297,13 @@
 
 # Mercury-specific target:
 # generic shared library version of the collector
-libgc$(PROF).so: $(OBJS) if_mach if_not_there # dyn_load_sunos53.o
+libgc$(PROF).so: $(OBJS) $(UTILS) # dyn_load_sunos53.o
 	rm -f on_sparc_sunos5_so
 	./if_mach SPARC SUNOS5 touch on_sparc_sunos5_so
 	./if_mach SPARC SUNOS5 $(MAKE) dyn_load_sunos53.o
 	./if_mach SPARC SUNOS5 \
 	$(LINK_SHARED_OBJ) -o libgc$(PROF).so $(OBJS) dyn_load_sunos53.o \
-		-ldl
+		-ldl `./threadlibs`
 	./if_not_there on_sparc_sunos5_so $(MAKE) dyn_load.o
 	./if_not_there on_sparc_sunos5_so \
 	$(LINK_SHARED_OBJ) -o libgc$(PROF).so $(OBJS) dyn_load.o -lc

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list