From 9c68aa0a94aada5dd5eaab3c6b5fab69ec376e97 Mon Sep 17 00:00:00 2001 From: Stefan Naewe Date: Fri, 8 Feb 2013 11:32:06 +0100 Subject: [PATCH] Makefile: set LDFLAGS correct when built with MINGW32 Signed-off-by: Stefan Naewe --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index e4b8ffa2e..62f2a955d 100644 --- a/Makefile +++ b/Makefile @@ -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')