This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] VMS: force output filename in t-vms
- From: Tristan Gingold <gingold at adacore dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 16 Dec 2011 16:35:55 +0100
- Subject: [patch] VMS: force output filename in t-vms
The default object suffix for VMS is .obj, so we need to force .o.
Ironically the issue was in vms/t-vms, but wasn't caught until a native compiler was built.
Committed on trunk.
Tristan.
2011-12-16 Tristan Gingold <gingold@adacore.com>
* config/vms/t-vms (vms.o, vms-c.o): Force output filename.
--- a/gcc/config/vms/t-vms
+++ b/gcc/config/vms/t-vms
@@ -31,10 +31,10 @@ vms-crtlmap.h: $(srcdir)/config/vms/vms-crtlmap.map \
vms.o: $(srcdir)/config/vms/vms.c $(TREE_H) $(CONFIG_H) $(SYSTEM_H) \
coretypes.h $(TM_P_H) vms-crtlmap.h
- $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
+ $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< -o $@
vms-c.o: $(srcdir)/config/vms/vms-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
$(TM_H) $(CPPLIB_H) $(TREE_H) c-family/c-pragma.h toplev.h $(GGC_H) \
$(TM_P_H)
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
- $(PREPROCESSOR_DEFINES) \$<
+ $(PREPROCESSOR_DEFINES) $< -o $@