diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-02-22 20:00:19 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-02-22 20:00:19 +0000 |
commit | 6f0c5cd76865347537e902650492e6e78599bcea (patch) | |
tree | 9d0031b2ef4f6e5586e837163031cc7e19476372 /apps/plugins | |
parent | cf208c50a2b52d0dd5a79567aeef4738c6082137 (diff) | |
download | rockbox-6f0c5cd76865347537e902650492e6e78599bcea.tar.gz rockbox-6f0c5cd76865347537e902650492e6e78599bcea.zip |
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/Makefile | 4 |
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) | |||
53 | $(OBJDIR)/%.rock : $(OBJDIR)/%.o $(APPSDIR)/plugin.h | 53 | $(OBJDIR)/%.rock : $(OBJDIR)/%.o $(APPSDIR)/plugin.h |
54 | @echo "LD $@" | 54 | @echo "LD $@" |
55 | @$(CC) $(CFLAGS) -shared $< -L$(OBJDIR) $(CODECLIBS) -lplugin -o $@ | 55 | @$(CC) $(CFLAGS) -shared $< -L$(OBJDIR) $(CODECLIBS) -lplugin -o $@ |
56 | ifeq ($(UNAME),CYGWIN) | 56 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) |
57 | # 'x' must be kept or you'll have "Win32 error 5" | 57 | # 'x' must be kept or you'll have "Win32 error 5" |
58 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 | 58 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 |
59 | # #define ERROR_ACCESS_DENIED 5L | 59 | # #define ERROR_ACCESS_DENIED 5L |
@@ -71,7 +71,7 @@ $(OBJDIR)/%.rock : $(OBJDIR)/%.o $(APPSDIR)/plugin.h | |||
71 | @echo "DLL $@" | 71 | @echo "DLL $@" |
72 | @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $< | 72 | @$(DLLTOOL) $(DLLTOOLFLAGS) -z $(OBJDIR)/$*.def $< |
73 | @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $< $(OBJDIR)/libplugin.a -o $@ | 73 | @$(DLLWRAP) $(DLLWRAPFLAGS) --def $(OBJDIR)/$*.def $< $(OBJDIR)/libplugin.a -o $@ |
74 | ifeq ($(UNAME),CYGWIN) | 74 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) |
75 | # 'x' must be kept or you'll have "Win32 error 5" | 75 | # 'x' must be kept or you'll have "Win32 error 5" |
76 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 | 76 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 |
77 | # #define ERROR_ACCESS_DENIED 5L | 77 | # #define ERROR_ACCESS_DENIED 5L |