summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/pigz/files/ldflags.patch
blob: 928c3a57703ec4873ab1a3a63c366f39785cb025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Link using the bitbake LDFLAGS.

Signed-off-by: Björn Stenberg <bjst@enea.com>

Upstream-Status: Pending

--- pigz-2.2.4/Makefile.orig	2012-01-01 02:46:58.000000000 +0100
+++ pigz-2.2.4/Makefile	2012-03-09 08:47:40.025094863 +0100
@@ -2,7 +2,7 @@
 CFLAGS=-O3 -Wall -Wextra
 
 pigz: pigz.o yarn.o
-	$(CC) -o pigz pigz.o yarn.o -lpthread -lz
+	$(CC) $(LDFLAGS) -o pigz pigz.o yarn.o -lpthread -lz
 	ln -f pigz unpigz
 
 pigz.o: pigz.c yarn.h