fix SUB_EXE_CFLAGS in configure to link without "-ldl" when use MINGW
authorgreg
Thu, 10 Jan 2008 16:12:45 +0100
changeset 351 fb106ad03770
parent 350 e90113f7030b
child 352 3347581c3140
fix SUB_EXE_CFLAGS in configure to link without "-ldl" when use MINGW
configure
--- a/configure	Tue Jan 08 11:06:50 2008 +0100
+++ b/configure	Thu Jan 10 16:12:45 2008 +0100
@@ -562,7 +562,12 @@
 	SUB_ENABLE_DLL_DRIVERS=0
 else
 	SUB_ENABLE_DLL_DRIVERS=1
-	SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ -ldl
+	if [ "$SUB_OS_NAME" = "MINGW32" ]; then
+		SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS
+	else
+		SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ -ldl
+	fi
+	
 fi