]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Decision about final C/C++ linking was interchanged.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 3 Sep 2007 22:26:00 +0000 (22:26 +0000)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 3 Sep 2007 22:26:00 +0000 (22:26 +0000)
darcs-hash:20070903222631-ff715-ae4da28cfb241c60f30a07dc07b9b8b93b523aea.gz

snippets/linux

index d1b0b813f434895e0d3fdc388231b3050996756e..3cd8456390978d8d5e02b7f383d6284b141c983e 100644 (file)
@@ -210,7 +210,7 @@ USER_SOURCES += $$($(1)_SOURCES)
 
 $(2)/$(1)$(3): $$($(1)_OBJS)
        @$(QUIET_CMD_ECHO) "  LINK    $$@"
-       $(Q) $$(if $$(filter %.cc,$$($(1)_SOURCES:%.cxx=%.cc)),$$(CC),$$(CXX)) \
+       $(Q) $$(if $$(filter %.cc,$$($(1)_SOURCES:%.cxx=%.cc)),$$(CXX),$$(CC)) \
          $$($(1)_OBJS) $$($(1)_LIBS:%=-l%) $$(LOADLIBES) $$(LDFLAGS) -Wl,-Map,$(USER_OBJS_DIR)/$(1).exe.map -o $$@
        @echo "$(2)/$(1)$(3): \\" >$(USER_OBJS_DIR)/$(1).exe.d
        @sed -n -e 's/^LOAD \(.*\)$$$$/  \1  \\/p' $(USER_OBJS_DIR)/$(1).exe.map  >>$(USER_OBJS_DIR)/$(1).exe.d