File acarsdec-fix-makefile.diff of Package acarsdec
diff --git a/Makefile b/Makefile
index b69c499..cddd0bd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
# See README for compiler options
-CFLAGS= -Ofast -pthread -D WITH_RTL -D WITH_ALSA -D WITH_SNDFILE
-LDLIBS= -lm -pthread -lrtlsdr -lasound -lsndfile
+CFLAGS += -Ofast -pthread -D WITH_RTL -D WITH_ALSA -D WITH_SNDFILE
+LDLIBS = -lm -pthread -lasound -lsndfile `pkg-config --libs librtlsdr`
# Airspy conf
# CFLAGS= -Ofast -pthread -D WITH_AIR -I. `pkg-config --cflags libairspy`