From 727361c1abfa27f951b11e091d16a0f1f586128d Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Wed, 1 Jul 2015 23:37:17 +0100 Subject: [PATCH] Link librtlsdr statically, so we don't need to ship a copy which might conflict with other packages. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8e6bb92..3b3eabb 100644 --- a/Makefile +++ b/Makefile @@ -16,8 +16,8 @@ EXTRACFLAGS=-DHTMLPATH=\"$(HTMLDIR)\" endif #CFLAGS=-O2 -g -Wall -W `pkg-config --cflags librtlsdr` -CFLAGS+= `pkg-config --cflags librtlsdr` -LIBS=`pkg-config --libs librtlsdr` -lpthread -lm +CFLAGS+=$(shell pkg-config --cflags librtlsdr) +LIBS=-Wl,-Bstatic -lrtlsdr -Wl,-Bdynamic -lusb-1.0 -lpthread -lm CC=gcc