[m-dev.] diff: work-around for fixed limit on GOT entries

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Aug 27 04:43:21 AEST 1999


Estimated hours taken: 4

compiler/Mmakefile:
	Work around a fixed limit on alpha-dec-osf3.2,
	by making sure that on that platform we link statically.

Workspace: /home/mercury0/fjh/mercury
Index: compiler/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/Mmakefile,v
retrieving revision 1.21
diff -u -r1.21 Mmakefile
--- Mmakefile	1999/07/20 21:29:46	1.21
+++ Mmakefile	1999/08/26 18:40:56
@@ -51,6 +51,20 @@
 MTAGS	=	$(SCRIPTS_DIR)/mtags
 MTAGSFLAGS =	
 
+#
+# Work-around for a fixed limit: on alpha-dec-osf3.2,
+# when linking mercury_compile we get an error message of the form
+#
+#   /usr/bin/ld:
+#	Too many GOT entries in object file '/usr/lib/cmplrs/cc/libexc_init.a';
+#	Found 8190 (6660 locals + 1530 globals) but max is 8189
+#
+# unless we link it statically.
+#
+ifeq ($(FULLARCH),alpha-dec-osf3.2)
+MLFLAGS += --static
+endif
+
 #-----------------------------------------------------------------------------#
 
 # Rules for preprocessing `.pp' files.

-- 
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