add -mno-cygwin when linking with the vscom api dll
authorgreg
Wed, 07 May 2008 16:59:50 +0200
changeset 461 51cf26e3f352
parent 460 48cd190df6f7
child 462 3c5b2eb51922
add -mno-cygwin when linking with the vscom api dll
drivers/can_vscom/Makefile.in
--- a/drivers/can_vscom/Makefile.in	Wed May 07 15:35:48 2008 +0200
+++ b/drivers/can_vscom/Makefile.in	Wed May 07 16:59:50 2008 +0200
@@ -27,6 +27,7 @@
 PROG_CFLAGS = SUB_PROG_CFLAGS
 PREFIX = SUB_PREFIX
 TARGET = SUB_TARGET
+OS = SUB_OS_NAME
 CAN_DRIVER = SUB_CAN_DRIVER
 TIMERS_DRIVER = SUB_TIMERS_DRIVER
 ENABLE_DLL_DRIVERS=SUB_ENABLE_DLL_DRIVERS
@@ -72,7 +73,7 @@
 	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
 
 libcanfestival_$(CAN_DRIVER).$(DLL_TYPE): $(OBJS)
-	$(CC) -shared $(CAN_VSCOM_DLL_FLAGS) -o $@ $< $(CAN_DLL_CFLAGS)
+	$(CC) $(PROG_CFLAGS) -shared $(CAN_VSCOM_DLL_FLAGS) -o $@ $< $(CAN_DLL_CFLAGS)
 
 install: libcanfestival_$(CAN_DRIVER).so
 	mkdir -p $(PREFIX)/lib/