Re: [AD] debian mingw32 notes

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Mon, 2004-06-07 at 12:23, Elias Pschernig wrote:
> I'm going to apply the attached patch - maybe you can test if
> cross-compiling works with it for you?
> 

I just discovered that my last patch didn't work for static linking,
since also "ar" is used unprefixed. Going to apply the attached patch to
fix this. Now cross-compiling should work without touching PATH.

-- 
Elias Pschernig <elias@xxxxxxxxxx>
Index: makefile.mgw
===================================================================
RCS file: /cvsroot/alleg/allegro/makefile.mgw,v
retrieving revision 1.95
diff -u -p -r1.95 makefile.mgw
--- makefile.mgw	11 Jun 2004 14:16:09 -0000	1.95
+++ makefile.mgw	15 Jun 2004 20:06:34 -0000
@@ -324,9 +324,11 @@ include makefile.tst
 ifndef CROSSCOMPILE
    DLLWRAP = dllwrap
    WINDRES = windres
+   AR = ar
 else
    DLLWRAP = $(XPREFIX)dllwrap
    WINDRES = $(XPREFIX)windres
+   AR = $(XPREFIX)ar
 endif
 
 ifdef STATICLINK
@@ -334,7 +336,7 @@ ifdef STATICLINK
 # -------- link as a static library --------
 
 define MAKE_LIB
-   ar rs $(LIB_NAME) $(OBJECTS)
+   $(AR) rs $(LIB_NAME) $(OBJECTS)
 endef
 
 COMPILE_FLAGS = -DALLEGRO_STATICLINK 
@@ -490,7 +492,7 @@ else
 endif
 
 define MAKE_PLUGIN_LIB
-   ar rs $(PLUGIN_LIB) $(PLUGIN_OBJS)
+   $(AR) rs $(PLUGIN_LIB) $(PLUGIN_OBJS)
 endef
 
 define LINK_WITH_PLUGINS


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/