Description: Move link flags to the start of the command
 Link flags are only used for files after they are specified.  Move them to the
 front of the command line, so they are used.
Author: Bas Wijnen <wijnen@debian.org>
Forwarded: no
Last-Update: 2015-06-20

Index: openmsx-catapult-0.13.0/build/main.mk
===================================================================
--- openmsx-catapult-0.13.0.orig/build/main.mk
+++ openmsx-catapult-0.13.0/build/main.mk
@@ -304,7 +304,7 @@ config:
 $(BINARY_FULL): $(OBJECTS_FULL) $(RESOURCE_OBJ)
 	@echo "Linking $(BINARY_FILE)..."
 	@mkdir -p $(@D)
-	@$(CXX) -o $@ $^ $(LINK_FLAGS)
+	@$(CXX) $(LINK_FLAGS) -o $@ $^
 
 # Compile and generate dependency files in one go.
 DEPEND_SUBST=$(patsubst $(SOURCES_PATH)/%.cpp,$(DEPEND_PATH)/%.d,$<)
