Makefile: set LDFLAGS correct when built with MINGW32

Signed-off-by: Stefan Naewe <stefan.naewe@googlemail.com>
This commit is contained in:
Stefan Naewe 2013-02-08 11:32:06 +01:00
parent 9d7f692d4e
commit 9c68aa0a94
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ ifdef COMSPEC
ifndef CPPCHK_GLIBCXX_DEBUG
CPPCHK_GLIBCXX_DEBUG=
endif # !CPPCHK_GLIBCXX_DEBUG
ifeq ($(MSYSTEM),MINGW32)
LDFLAGS=-lshlwapi
endif
else # !COMSPEC
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')