Fixed building cpuinfo under mingw32
authorSam Lantinga <slouken@libsdl.org>
Wed, 19 Nov 2003 08:03:10 +0000
changeset 742 528a52626680
parent 741 97b9c301df94
child 743 96cd118791bf
Fixed building cpuinfo under mingw32
configure.in
src/cpuinfo/Makefile.am
--- a/configure.in	Tue Nov 18 14:25:12 2003 +0000
+++ b/configure.in	Wed Nov 19 08:03:10 2003 +0000
@@ -505,7 +505,7 @@
                   NASMFLAGS="-f aoutb"
                   ;;
               *)
-                  NASMFLAGS="-f elf"
+                  NASMFLAGS="-f elf -D __NOU__"
                   ;;
             esac
             AC_SUBST(NASMFLAGS)
--- a/src/cpuinfo/Makefile.am	Tue Nov 18 14:25:12 2003 +0000
+++ b/src/cpuinfo/Makefile.am	Wed Nov 19 08:03:10 2003 +0000
@@ -7,7 +7,7 @@
 SUFFIXES = .asm
 
 .asm.lo:
-	$(LIBTOOL) --tag=CC --mode=compile $(STRIP_FPIC) $(NASM) -t -D __FLAT__ -D __NOU__ @NASMFLAGS@ $< -o $*.o
+	$(LIBTOOL) --tag=CC --mode=compile $(STRIP_FPIC) $(NASM) -t -D __FLAT__ @NASMFLAGS@ $< -o $*.o
 
 ###########################################################################