Description: Reorder libs to fix FTBFS with binutils-gold
Author: Angel Abad <angelabad@ubuntu.com>

Index: gyoto-0.0.3/bin/Makefile
===================================================================
--- gyoto-0.0.3.orig/bin/Makefile	2012-10-10 16:22:07.000000000 +0000
+++ gyoto-0.0.3/bin/Makefile	2012-10-10 16:22:07.000000000 +0000
@@ -27,7 +27,7 @@
 	$(CXX) -o $@ $(CXXFLAGS) $(GYOTO_INC) $^  $(LIB_CXX_Gyoto)
 
 gyoto: gyoto.o ../lib/$(LIBGYOTO_FILE)
-	$(CXX) -o $@ $(LDFLAGS) $(LDLIBS) $< -L../lib -lgyoto -ldl
+	$(CXX) -o $@ -L../lib $(LDFLAGS) $< $(LDLIBS) -lgyoto -ldl
 
 dbgyoto: debugyoto.C ../lib/libgyoto.a
 	$(CXX) -o $@ $(CXXFLAGS) $(GYOTO_INC) $^ $(LIB_CXX_Gyoto) $(LIB_CXX) $(LIB_CFITSIO) $(LIB_LORENE) $(LIB_LAPACK) $(LIB_GSL) $(LIB_PGPLOT) -Wno-long-long
Index: gyoto-0.0.3/lib/Makefile
===================================================================
--- gyoto-0.0.3.orig/lib/Makefile	2012-05-01 11:41:58.000000000 +0000
+++ gyoto-0.0.3/lib/Makefile	2012-10-10 16:24:59.572716466 +0000
@@ -51,7 +51,7 @@
 	ln -fs $(LIBGYOTO_FILE) libgyoto.so.$(SOVERS_MAJOR)
 	ln -fs $(LIBGYOTO_FILE) libgyoto.so
 endif
-	$(CXX) -o $(LIBGYOTO_FILE) $(DYLIB_FLAG)  $(LDFLAGS) $(LDLIBS) $^
+	$(CXX) -o $(LIBGYOTO_FILE) $(DYLIB_FLAG) $^ $(LDFLAGS) $(LDLIBS)
 
 libgyoto-stdplug.$(DYLIB_SFX): $(STDPLUG_OBJ) StdPlug.o $(LIBGYOTO_FILE) Metric.o
 	$(CXX) -o $@  $(PLUG_FLAGS) $(STDPLUG_OBJ) StdPlug.o $(LDFLAGS) $(LDLIBS)
