==== as for factoring:
What do you think of these as common functionality to be collected up?
1/ determining that the action is PCH
(and ensuring that no link commands are put into the driver line --
these cause collect2 to be invoked which barfs because there is no
linking to do).
[g++ fails on this as of now]
2/ the repeated sequence of actions for a 'static-xxxx' flag:
NOTE: when encountering a "static-xxxx" flag - please do not remove
this (or , specifically, ensure that it is replaced when linking) so
that targets that use spec substitution (i.e. those that do not
support Bstatic/Bdynamic) for static libs can see it.
[g++ fails on this too, at present, fortran has it right]
3/ consider that the input files might be supplied from a file list
and that should be considered before quitting with a "no files, not
prepared to ... "
Phil, your spec file works for me on i686-darwin9 (for NeXT and gnu-
runtimes) with the modified Makefile fragment below.
@@ -39,13 +39,14 @@
# Define the names for selecting Objective-C in LANGUAGES.
-# Tell GNU make to ignore these if they exist.
-# Use maximal warnings for this front end.
+# Use strict warnings for this front end.
objc-warn = $(STRICT_WARN)
+OBJC_INSTALL_NAME := $(shell echo objc|sed '$(program_transform_name)')
+OBJC_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo objc|
# Language-specific object files for Objective C.
OBJC_OBJS = objc/objc-lang.o objc/objc-act.o