From a434e1d076ca475fd1e5364a9aaed7a9d0f4d3d7 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Wed, 2 Mar 2016 17:32:53 +0000 Subject: [PATCH] Change of plan: don't statically link for jessie, but keep the option around for wheezy. We'll have to do something to populate the udev rules on wheezy when we get to that. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 79ac43d..197c87a 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,11 @@ endif CPPFLAGS+=-DMODES_DUMP1090_VERSION=\"$(DUMP1090_VERSION)\" CFLAGS+=-O2 -g -Wall -Werror -W LIBS=-lpthread -lm +ifeq ($(STATIC), yes) LIBS_RTL=-Wl,-Bstatic -lrtlsdr -Wl,-Bdynamic -lusb-1.0 +else +LIBS_RTL=-lrtlsdr -lusb-1.0 +endif CC=gcc UNAME := $(shell uname)