Re: [AD] Patch to allow Allegro 4.3.10plus to build on Haiku

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


On 2008-10-21, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> On 2008-10-21, scott mc <scottmc2@xxxxxxxxxx> wrote:
> > 
> > I changed the TRACE to AL_TRACE to get passed the few cases that were
> > failing and now get this error.  This is where the empty directory
> > fixed things:
> > 
> > gcc -DALLEGRO_LIB_BUILD -Wall -Wno-unused -Wno-multichar
> > -Wno-ctor-dtor-privacy -mcpu=i586 -O6 -funroll-loops -ffast-math
> > -fomit-frame-pointer -DALLEGRO_NO_ASM -I. -I./include -o
> > obj/beos/alleg/beos/bfixicon.o -c tools/beos/bfixicon.cpp
> > Assembler messages:
> > FATAL: can't create obj/beos/alleg/beos/bfixicon.o: No such file or directory
> > make[1]: *** [obj/beos/alleg/beos/bfixicon.o] Error 1
> > make[1]: Leaving directory `/boot/home/allegro'
> > make: *** [programs] Error 2
> > ~/allegro>
> 
> It looks like a problem with our (crappy) depend scripts.  Can you rerun
> `make depend' and send me a copy of `obj/beos/alleg/makefile.dep'
> (privately)?  Adding the new empty directory would only be a workaround,
> and we'd also have to make obj/beos/{alld,allp}/beos as well.

That wasn't it.

On Linux, when I do `fix.sh haiku; make -n'
I get the expected command line:

    gcc -DALLEGRO_LIB_BUILD -Wall -Wno-unused -Wno-multichar
    -Wno-ctor-dtor-privacy -mtune=i586 -O6 -funroll-loops -ffast-math
    -fomit-frame-pointer -DALLEGRO_NO_ASM -I. -I./include -o
    obj/beos/alleg/bfixicon.o -c tools/beos/bfixicon.cpp


To reproduce the line that you got, I have to fiddle around with the two
rules in makefile.be beginning with:

    */%: $(OBJ_DIR)/%.o $(LIB_NAME)                                                                                                                                
and
    tools/beos/%: $(OBJ_DIR)/%.o $(LIB_NAME)


Otherwise, this might work:

diff --git a/makefile.be b/makefile.be
index b9e5711..e5b032c 100644
--- a/makefile.be
+++ b/makefile.be
@@ -316,7 +316,7 @@ define LINK_WITH_PLUGINS
 $(CC) $(LFLAGS) -o $@ $< $(strip $(PLUGIN_LIB) $(addprefix @,$(PLUGIN_SCRIPTS)) $(LIB_NAME))
 endef
 
-tools/beos/%: $(OBJ_DIR)/%.o $(LIB_NAME)
+tools/beos/bfixicon: $(OBJ_DIR)/bfixicon.o $(LIB_NAME)
 	$(CC) $(LFLAGS) -o $@ $< $(LIB_NAME) $(LIBRARIES)


Peter





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