minor fixes
[ia32rtools.git] / winelib.mak
index ed1f34d..c9b23ce 100644 (file)
@@ -7,11 +7,16 @@ ifndef DEBUG
 CFLAGS += -O2
 endif
 LDFLAGS += -g
+# uncomment to use wine's msvcrt as the C library instead of glibc
+# LDFLAGS += -mno-cygwin
 
 ifdef ARM
 CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=neon
 CFLAGS += -Wno-unused -fsigned-char
-WGCC_FLAGS += -marm -b$(patsubst %-,%,$(CROSS_COMPILE))
+WGCC_FLAGS += -marm
+ifneq ($(CROSS_COMPILE),)
+WGCC_FLAGS += -b$(patsubst %-,%,$(CROSS_COMPILE))
+endif
 # wine defines wchar_t correctly, doesn't use -fshort-wchar, we can't too
 WGCC_FLAGS += -fno-short-wchar
 # WGCC_FLAGS += --sysroot $(WINEROOT)