File: 04_fix_ftbfs_binutils-gold.patch

package info (click to toggle)
docker 1.5-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 244 kB
  • sloc: ansic: 1,544; makefile: 129
file content (18 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix FTBFS binutils-gold with ld --no-add-needed
Author: Mahyuddin Susanto <udienz@gmail.com>
Ubuntu-Bug: https://launchpad.net/bugs/704871

--- a/Makefile	2014-06-11 14:24:50.107443351 -0400
+++ b/Makefile	2014-06-11 14:25:50.131852879 -0400
@@ -30,8 +30,9 @@ all: $(target) $(sources) $(headers)
 	@echo Build Successful
 
 $(target): $(sources:.c=.o)
-	$(CC) $(CFLAGS) -L$(XLIBPATH) -lX11 \
-		`pkg-config --libs glib-2.0` $^ -o $@
+	$(CC) $(CFLAGS) \
+		$^ -o $@ \
+		-L$(XLIBPATH) -lX11 `pkg-config --libs glib-2.0`
 
 %.o: %.c
 	$(CC) -c $(CFLAGS) `pkg-config --cflags glib-2.0` $<