kmod: bump to version 24
[buildroot-gz.git] / package / pifmrds / 0003-Makefile-fix-static-link.patch
blobecd7c4fc4cb612ec1814fb5b94ec45134e0be82a
1 Makefile: Fix static linking
3 Since libsndfile uses funtions from libm, the -lm should be specified
4 after libsndfile for static linking.
6 Signed-off-by: "Eric Limpens" <Limpens@gmail.com>
8 diff -purN pifmrds-0bf57f9ce0d954365a38d8af8e7be6f28521c3f2.orig/src/Makefile pifmrds-0bf57f9ce0d954365a38d8af8e7be6f28521c3f2/src/Makefile
9 --- pifmrds-0bf57f9ce0d954365a38d8af8e7be6f28521c3f2.orig/src/Makefile 2016-02-26 08:06:43.102962592 +0100
10 +++ pifmrds-0bf57f9ce0d954365a38d8af8e7be6f28521c3f2/src/Makefile 2016-02-26 08:27:11.069148203 +0100
11 @@ -1,10 +1,10 @@
12 CC = gcc
14 app: rds.o waveforms.o pi_fm_rds.o fm_mpx.o control_pipe.o
15 - $(CC) $(LDFLAGS) -o pi_fm_rds rds.o waveforms.o pi_fm_rds.o fm_mpx.o control_pipe.o -lm -lsndfile
16 + $(CC) $(LDFLAGS) -o pi_fm_rds rds.o waveforms.o pi_fm_rds.o fm_mpx.o control_pipe.o -lsndfile -lm
18 rds_wav: rds.o waveforms.o rds_wav.o fm_mpx.o
19 - $(CC) $(LDFLAGS) -o rds_wav rds_wav.o rds.o waveforms.o fm_mpx.o -lm -lsndfile
20 + $(CC) $(LDFLAGS) -o rds_wav rds_wav.o rds.o waveforms.o fm_mpx.o -lsndfile -lm
22 rds.o: rds.c waveforms.h
23 $(CC) $(CFLAGS) rds.c