Description: Fix ldlibs-m position on compiler invocation
 LDLIBS (or whatever variable has a similar function) must always go
 at the end of GCC invocation. There is an error in upstream but for some
 reason it didn't affect Debian, only Ubuntu.
 .
 This patch fixes this.
 
Author: Octavio Alvarez <alvarezp@alvarezp.com>
Origin: https://gitlab.com/alvarezp2000/superkb/-/commit/708bc08e91d546267fc7a815cd390b9bc45ac349
Forwarded: not-needed
Last-Update: 2020-09-05

--- superkb-0.23.orig/Makefile
+++ superkb-0.23/Makefile
@@ -140,7 +140,7 @@ puticon/puticon-gdkpixbuf.o: puticon/put
 
 
 $(SHARED): %.so: %.o
-	gcc $(ldlibs-m) $(LDFLAGS) -shared -o $@ $<
+	gcc -shared -o $@ $< $(LDFLAGS) $(ldlibs-m)
 
 .PHONY : relink
 relink:
