[m-rev.] diff: don't link thread lib in non-C grades

Julien Fischer juliensf at csse.unimelb.edu.au
Thu Feb 16 10:58:23 AEDT 2012


Branches: main, 11.07

Fix yet another problem that is preventing the Mercury compiler from building
in the csharp grade.

compiler/Mmakefile:
 	Don't link in the thread library in non-C grades.

Julien.

Index: compiler/Mmakefile
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/compiler/Mmakefile,v
retrieving revision 1.115
diff -u -r1.115 Mmakefile
--- compiler/Mmakefile	15 Feb 2012 17:19:27 -0000	1.115
+++ compiler/Mmakefile	15 Feb 2012 23:56:03 -0000
@@ -70,11 +70,11 @@
  MLOBJS       := ../main.$O \
  		../trace/lib$(EVENTSPEC_LIB_NAME).$A \
  		$(MLOBJS)
+MLLIBS       += $(THREAD_LIBS)
  else
  MLOBJS =
  endif

-MLLIBS       += $(THREAD_LIBS)
  ALL_MLLIBS    = $(MLLIBS) $(EXTRA_MLLIBS) $(GCC_BACKEND_LIBS)
  MLFLAGS      += --no-main --shared
  C2INITARGS   += $(MDBCOMP_DIR)/$(MDBCOMP_LIB_NAME).init


--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list