aboutsummaryrefslogtreecommitdiff
path: root/package/pifmrds
diff options
context:
space:
mode:
authorGravatar Eric Limpens <limpens@gmail.com>2016-02-26 22:55:57 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-28 23:04:25 +0100
commit3c434d2afcb58445ab3e151642f770555a4cc252 (patch)
tree58912fbbe1f2faf3cabb88e7f1ac6d05c562b9dd /package/pifmrds
parent0b98bb7f83845a03d923c4a7df88972720c26188 (diff)
downloadbuildroot-3c434d2afcb58445ab3e151642f770555a4cc252.tar.gz
buildroot-3c434d2afcb58445ab3e151642f770555a4cc252.tar.bz2
pifmrds: add patch to correct linking in static build
This patch fixes an autobuild error during a static build: http://autobuild.buildroot.net/results/f61ae46ba4d4fc3af3784d1f612a8c1cc7de3314/ Signed-off-by: Eric Limpens <limpens@gmail.com> [Arnout: clean up commit message and patch log] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pifmrds')
-rw-r--r--package/pifmrds/0003-Makefile-fix-static-link.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/pifmrds/0003-Makefile-fix-static-link.patch b/package/pifmrds/0003-Makefile-fix-static-link.patch
new file mode 100644
index 0000000000..ecd7c4fc4c
--- /dev/null
+++ b/package/pifmrds/0003-Makefile-fix-static-link.patch
@@ -0,0 +1,23 @@
+Makefile: Fix static linking
+
+Since libsndfile uses funtions from libm, the -lm should be specified
+after libsndfile for static linking.
+
+Signed-off-by: "Eric Limpens" <Limpens@gmail.com>
+
+diff -purN pifmrds-0bf57f9ce0d954365a38d8af8e7be6f28521c3f2.orig/src/Makefile pifmrds-0bf57f9ce0d954365a38d8af8e7be6f28521c3f2/src/Makefile
+--- pifmrds-0bf57f9ce0d954365a38d8af8e7be6f28521c3f2.orig/src/Makefile 2016-02-26 08:06:43.102962592 +0100
++++ pifmrds-0bf57f9ce0d954365a38d8af8e7be6f28521c3f2/src/Makefile 2016-02-26 08:27:11.069148203 +0100
+@@ -1,10 +1,10 @@
+ CC = gcc
+
+ app: rds.o waveforms.o pi_fm_rds.o fm_mpx.o control_pipe.o
+- $(CC) $(LDFLAGS) -o pi_fm_rds rds.o waveforms.o pi_fm_rds.o fm_mpx.o control_pipe.o -lm -lsndfile
++ $(CC) $(LDFLAGS) -o pi_fm_rds rds.o waveforms.o pi_fm_rds.o fm_mpx.o control_pipe.o -lsndfile -lm
+
+ rds_wav: rds.o waveforms.o rds_wav.o fm_mpx.o
+- $(CC) $(LDFLAGS) -o rds_wav rds_wav.o rds.o waveforms.o fm_mpx.o -lm -lsndfile
++ $(CC) $(LDFLAGS) -o rds_wav rds_wav.o rds.o waveforms.o fm_mpx.o -lsndfile -lm
+
+ rds.o: rds.c waveforms.h
+ $(CC) $(CFLAGS) rds.c