diff --git a/dep.mk b/dep.mk index d656f30b..d5374bf1 100644 --- a/dep.mk +++ b/dep.mk @@ -19,14 +19,7 @@ DEP_CXXFLAGS += $(DEP_FLAGS) WGET := wget -c UNTAR := tar xf UNZIP := unzip -o -CONFIGURE := ./configure --prefix="$(DEP_PATH)" -ifdef ARCH_WIN - CONFIGURE += --build=x86_64-w64-mingw32 -else ifdef ARCH_MAC - CONFIGURE += --build=x86_64-apple-darwin -else ifdef ARCH_LIN - CONFIGURE += --build=x86_64-unknown-linux-gnu -endif +CONFIGURE := ./configure --prefix="$(DEP_PATH)" --host=$(MACHINE) ifdef ARCH_WIN CMAKE := cmake -G 'MSYS Makefiles' -DCMAKE_INSTALL_PREFIX="$(DEP_PATH)"