File: fix-ldlibs-m-position-on-invocation

package info (click to toggle)
superkb 0.23-5
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 492 kB
  • sloc: ansic: 3,915; sh: 187; makefile: 182
file content (23 lines) | stat: -rw-r--r-- 733 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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: