Move libcmd to configure.
diff --git a/Makefile b/Makefile
index 6ea3109..b64ad0a 100644
--- a/Makefile
+++ b/Makefile
@@ -14,10 +14,7 @@ ifeq ($(BUILD_STATIC),yes)
endif
ifeq ($(BUILD_MSVC),yes)
SHFLAGS+=-Wl,--output-def,libdl.def
- LIBCMD=lib
INSTALL+=lib-install
-else
- LIBCMD=echo ignoring lib
endif
all: $(TARGETS)
diff --git a/configure b/configure
index b962057..3ae2f88 100755
--- a/configure
+++ b/configure
@@ -162,6 +162,8 @@ if enabled shared; then
lib /? > /dev/null 2>&1 /dev/null && enable msvc || disable msvc
fi
+enabled msvc && libcmd="lib" || libcmd="echo ignoring lib"
+
echo "# Automatically generated by configure" > config.mak
echo "PREFIX=$PREFIX" >> config.mak
echo "libdir=$libdir" >> config.mak
@@ -173,6 +175,7 @@ echo "STRIP=$strip" >> config.mak
echo "BUILD_SHARED=$shared" >> config.mak
echo "BUILD_STATIC=$static" >> config.mak
echo "BUILD_MSVC=$msvc" >> config.mak
+echo "LIBCMD=$libcmd" >> config.mak
echo "prefix: $PREFIX"
echo "libdir: $libdir"