Someone on irc was wondering about ctools and c++ files,
clibrary.make seemed to work ok though.
it doesn't seem to currently include $(CC_OBJC_FILES).
attached is a patch for that..
additionally i was wondering why it doesn't use g++ to compile the
files?
also when linking executables with c++ objs shouldn't it use g++ to
link?
I can see how you could just add -lstdc++ to the ADDITIONAL_TOOL_LIBS
but i also suppose a user could have multiple libstdc++'s and using
g++ should make sure that the
correct libstdc++ is linked in or something
<ctool.diff>
Index: Instance/ctool.make
===================================================================
--- Instance/ctool.make (revision 24274)
+++ Instance/ctool.make (working copy)
@@ -57,9 +57,10 @@
$(GNUSTEP_OBJ_DIR)/$(GNUSTEP_INSTANCE)$(EXEEXT)
$(GNUSTEP_OBJ_DIR)/$(GNUSTEP_INSTANCE)$(EXEEXT): $(C_OBJ_FILES) \
- $(SUBPROJECT_OBJ_FILES)
+ $(SUBPROJECT_OBJ_FILES) \
+ $(CC_OBJ_FILES)
$(ECHO_LINKING)$(LD) $(ALL_LDFLAGS) -o $(LDOUT)$@ \
- $(C_OBJ_FILES) $(SUBPROJECT_OBJ_FILES) \
+ $(C_OBJ_FILES) $(CC_OBJ_FILES) $(SUBPROJECT_OBJ_FILES) \
$(ALL_TOOL_LIBS)$(END_ECHO)
internal-ctool-install_:: $(CTOOL_INSTALL_DIR)/$(GNUSTEP_TARGET_DIR)
_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev