[AD] Fix profiling on BeOS

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


It looks like the profile build has not been widely used on BeOS... it is 
broken, the library doesn't even compile.

Fixed thusly on trunk and branch.

-- 
Eric Botcazou
Index: makefile.be
===================================================================
RCS file: /cvsroot/alleg/allegro/makefile.be,v
retrieving revision 1.35.2.3
diff -u -r1.35.2.3 makefile.be
--- makefile.be	8 Feb 2003 21:35:19 -0000	1.35.2.3
+++ makefile.be	18 Apr 2003 20:51:01 -0000
@@ -234,11 +234,15 @@
 
 # -------- finally, we get to the fun part... --------
 
+ifdef PROFILEMODE
+OTHER_OBJECTS = /boot/develop/lib/x86/i386-mcount.o
+endif
+
 ifdef STATICLINK
 
 # -------- link as a static library --------
 define MAKE_LIB
-ar rs $(LIB_NAME) $(OBJECTS)
+ar rs $(LIB_NAME) $(OBJECTS) $(OTHER_OBJECTS)
 endef
 
 else
@@ -246,7 +250,7 @@
 # -------- link as a shared library --------
 
 define MAKE_LIB
-gcc -nostart $(PFLAGS) -o $(LIB_NAME) $(OBJECTS) $(LIBRARIES)
+gcc -nostart $(PFLAGS) -o $(LIB_NAME) $(OBJECTS) $(OTHER_OBJECTS) $(LIBRARIES)
 endef
 
 endif # STATICLINK
@@ -267,7 +271,7 @@
 
 # link without Allegro, because we have no shared library yet
 docs/makedoc: $(OBJ_DIR)/makedoc$(OBJ)
-	gcc -o $@ $<
+	gcc -o $@ $< $(OTHER_OBJECTS)
 
 obj/beos/asmdef.inc: obj/beos/asmdef
 	obj/beos/asmdef obj/beos/asmdef.inc


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