summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-02-22 20:00:19 +0000
committerJens Arnold <amiconn@rockbox.org>2005-02-22 20:00:19 +0000
commit6f0c5cd76865347537e902650492e6e78599bcea (patch)
tree9d0031b2ef4f6e5586e837163031cc7e19476372 /apps/plugins
parentcf208c50a2b52d0dd5a79567aeef4738c6082137 (diff)
Proper check for cygwin build environment, avoids win32 error 5 when loading plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6040 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile
index ef506a9c4a..2676fa7e8c 100644
--- a/apps/plugins/Makefile
+++ b/apps/plugins/Makefile
@@ -53,7 +53,7 @@ ifeq ($(SIMVER), x11)
$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(APPSDIR)/plugin.h
@echo "LD $@"
@$(CC) $(CFLAGS) -shared $< -L$(OBJDIR) $(CODECLIBS) -lplugin -o $@
-ifeq ($(UNAME),CYGWIN)
+ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN)
# 'x' must be kept or you'll have "Win32 error 5"
# $ fgrep 5 /usr/include/w32api/winerror.h | head -1
# #define ERROR_ACCESS_DENIED 5L
@@ -71,7 +71,7 @@ $(OBJDIR)/%.rock : $(OBJDIR)/%.o $(APPSDIR)/plugin.h
@echo "DLL $@"
@$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $<
@$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $< $(OBJDIR)/libplugin.a -o $@
-ifeq ($(UNAME),CYGWIN)
+ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN)
# 'x' must be kept or you'll have "Win32 error 5"
# $ fgrep 5 /usr/include/w32api/winerror.h | head -1
# #define ERROR_ACCESS_DENIED 5L