Closed Bug 107633 Opened 23 years ago Closed 23 years ago

Enable obj-c++ in build

Categories

(SeaMonkey :: Build Config, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mikepinkerton, Assigned: netscape)

Details

patch to enable rules.mk to build obj-c++ files (.mm).

Index: rules.mk
===================================================================
RCS file: /cvsroot/mozilla/config/rules.mk,v
retrieving revision 3.309
diff -r3.309 rules.mk
200a201
>       $(CMMSRCS:.mm=.$(OBJ_SUFFIX)) \
942a944,948
> 
> $(OBJ_PREFIX)%.$(OBJ_SUFFIX): %.mm Makefile.in
>       $(REPORT_BUILD)
>       @$(MAKE_DEPS_AUTO)
>       $(ELOG) $(CCC) -o $@ -c $(COMPILE_CXXFLAGS) $<
Argh, use diff -u !!!! ;)

If leaf buys into using CMMSRCS for those .mm files, then r=cls .  
diff -u per request

Index: rules.mk
===================================================================
RCS file: /cvsroot/mozilla/config/rules.mk,v
retrieving revision 3.309
diff -u -2 -r3.309 rules.mk
--- rules.mk    2001/10/27 07:37:38     3.309
+++ rules.mk    2001/10/30 21:56:17
@@ -199,4 +199,5 @@
        $(CSRCS:.c=.$(OBJ_SUFFIX)) \
        $(CPPSRCS:.cpp=.$(OBJ_SUFFIX)) \
+       $(CMMSRCS:.mm=.$(OBJ_SUFFIX)) \
        $(ASFILES:.$(ASM_SUFFIX)=.$(OBJ_SUFFIX))
 OBJS   = $(strip $(addprefix $(OBJ_PREFIX),$(_OBJS)))
@@ -941,4 +942,9 @@
 endif
 endif #STRICT_CPLUSPLUS_SUFFIX
+
+$(OBJ_PREFIX)%.$(OBJ_SUFFIX): %.mm Makefile.in
+       $(REPORT_BUILD)
+       @$(MAKE_DEPS_AUTO)
+       $(ELOG) $(CCC) -o $@ -c $(COMPILE_CXXFLAGS) $<
 
 %.i: %.cpp
i'll buy it, but only because i have a weakness for the mac.
Patch has been checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.