[m-rev.] diff: find fesetround under Sparc Solaris 10

Peter Ross pro at missioncriticalit.com
Sun Jul 29 20:33:20 AEST 2012


Estimated hours taken: 2
Branches: main, 11.07

Fix compilation problems of the runtime under Sparc Solaris 10.

runtime/Mmakefile:
	fesetround can only be found if -lm is included in the link libraries.

Index: runtime/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/Mmakefile,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -r1.154 -r1.155
--- runtime/Mmakefile	26 Oct 2011 14:08:45 -0000	1.154
+++ runtime/Mmakefile	29 Jul 2012 10:13:17 -0000	1.155
@@ -249,7 +249,7 @@
 PIC_OBJS	= $(CFILES:.c=.$(EXT_FOR_PIC_OBJECTS))
 
 LDFLAGS		= -L$(BOEHM_GC_DIR) -L/usr/local/lib
-LDLIBS		= $(SHARED_GC_LIBS)
+LDLIBS		= $(SHARED_GC_LIBS) $(MATH_LIB)
 
 THREADLIBS	= \
 		` case "$(GRADE)" in					\
--------------------------------------------------------------------------
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