[m-rev.] diff: test static linking

Simon Taylor stayl at cs.mu.OZ.AU
Sat Nov 23 01:12:10 AEDT 2002


Estimated hours taken: 0.25
Branches: main, release

tests/hard_coded/Mmakefile:
	Test static linking, except on Solaris in debug grades,
	where `-ldl' doesn't work with static linking.

	Enable the `parse' test case which accidentally wasn't
	enabled when it was added.


Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/tests/hard_coded/Mmakefile,v
retrieving revision 1.173.2.1
retrieving revision 1.173.2.2
diff -u -u -r1.173.2.1 -r1.173.2.2
--- Mmakefile	22 Nov 2002 11:59:53 -0000	1.173.2.1
+++ Mmakefile	22 Nov 2002 14:10:52 -0000	1.173.2.2
@@ -270,9 +270,17 @@
 	C_ONLY_PROGS=
 endif	
 
+# Static linking doesn't work on Solaris in debug grades
+# ('-ldl' doesn't work with static linking).
+ifneq "$(findstring solaris,$(FULLARCH)) $(findstring debug,$(GRADE))" "solaris debug"
+	STATIC_LINK_PROGS = parse
+else
+	STATIC_LINK_PROGS =
+endif
+
 PROGS = $(ORDINARY_PROGS) $(BROKEN_FOR_LCC_PROGS) $(CLOSURE_LAYOUT_PROGS) \
 	$(EXCEPTION_PROGS) $(BACKEND_PROGS) $(NONDET_C_PROGS) \
-	$(C_ONLY_PROGS) $(CHAR_REP_PROGS)
+	$(C_ONLY_PROGS) $(STATIC_LINK_PROGS) $(CHAR_REP_PROGS)
 
 # --split-c-files does not work in the hl* grades (e.g. hlc.gc),
 # because it hasn't yet been implemented yet.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list