[m-dev.] diff: fix *.gc.par build problem

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Feb 11 15:58:17 AEDT 2001


Estimated hours taken: 0.5

Mmake.common.in:
	Turn off ERROR_UNDEFINED for .gc.par grades, since
	(a) currently we get link errors when building the Mercury
	shared libraries in those grades, because the thread-safe
	version of the Boehm GC needs to be linked with some
	fairly system-specific libraries
	(b) it's easier and safer to just turn it off here than to
	try to explicitly link with all the necessary libraries
	in that case.

Workspace: /home/hg/fjh/mercury
Index: Mmake.common.in
===================================================================
RCS file: /home/mercury1/repository/mercury/Mmake.common.in,v
retrieving revision 1.51
diff -u -d -r1.51 Mmake.common.in
--- Mmake.common.in	2001/02/07 14:37:28	1.51
+++ Mmake.common.in	2001/02/11 04:55:06
@@ -85,6 +85,14 @@
 ALLOW_UNDEFINED	= @ALLOW_UNDEFINED@
 ERROR_UNDEFINED	= @ERROR_UNDEFINED@
 
+# The thread-safe version of the Boehm GC library links in lots
+# of system-specific libraries that we don't want to have to
+# explicitly link in when building the Mercury shared libraries,
+# so override ERROR_UNDEFINED in that case.
+ifeq "$(findstring .par,$(GRADE))$(findstring .gc,$(GRADE))" ".par.gc"
+ERROR_UNDEFINED	= $(ALLOW_UNDEFINED)
+endif
+
 # The following variables specify how to pass options to the # $(CC) or
 # $(LINK_SHARED_OBJ) command to specify directories to be searched at
 # runtime for shared libraries.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- 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