[MLton-commit] r5551

adam at mlton.org adam at mlton.org
Fri May 11 04:09:22 PDT 2007


Do not add arithchk.o to libgdtoa.a

arithchk.o is a test program that should not be included in libgdtoa.a.
It contains a main function which makes it impossible to create Win32
applications using WinMain on MinGW with -mwindows. The original
gdtoa/Makefile takes care to delete arithchk.o, and we should too.

----------------------------------------------------------------------

U   mlton/trunk/runtime/Makefile

----------------------------------------------------------------------

Modified: mlton/trunk/runtime/Makefile
===================================================================
--- mlton/trunk/runtime/Makefile	2007-05-08 14:54:03 UTC (rev 5550)
+++ mlton/trunk/runtime/Makefile	2007-05-11 03:43:50 UTC (rev 5551)
@@ -241,6 +241,7 @@
 		$(CC) $(OPTCFLAGS) $(OPTWARNCFLAGS)		\
 			-w -O1 -c -DINFNAN_CHECK 		\
 			*.c
+	$(RM) gdtoa/arithchk.o
 	$(AR) libgdtoa.a gdtoa/*.o
 	$(RANLIB) libgdtoa.a
 




More information about the MLton-commit mailing list