diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index f3c13ca..15cc81d 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -381,7 +381,7 @@ static int slbt_init_host_params(
 			host->flavor = "bsd";
 		else if ((dash && !strcmp(dash,"-cygwin")) || strstr(machine,"-cygwin-"))
 			host->flavor = "cygwin";
-		else if ((dash && !strcmp(dash,"-darwin")) || strstr(machine,"-darwin-"))
+		else if ((dash && !strcmp(dash,"-darwin")) || strstr(machine,"-darwin"))
 			host->flavor = "darwin";
 		else if ((dash && !strcmp(dash,"-linux")) || strstr(machine,"-linux-"))
 			host->flavor = "linux";