From bbb0e4553bb7e245a79b12eddc1d10393b7c3fa0 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Mon, 29 Feb 2016 14:20:34 +0000 Subject: [PATCH] Static link against librtlsdr. --- Makefile | 2 +- debian/README.librtlsdr | 18 ++++++++++++++++++ debian/dump1090-fa.docs | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 debian/README.librtlsdr create mode 100644 debian/dump1090-fa.docs diff --git a/Makefile b/Makefile index 384d2d4..79ac43d 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ endif CPPFLAGS+=-DMODES_DUMP1090_VERSION=\"$(DUMP1090_VERSION)\" CFLAGS+=-O2 -g -Wall -Werror -W LIBS=-lpthread -lm -LIBS_RTL=`pkg-config --libs librtlsdr` +LIBS_RTL=-Wl,-Bstatic -lrtlsdr -Wl,-Bdynamic -lusb-1.0 CC=gcc UNAME := $(shell uname) diff --git a/debian/README.librtlsdr b/debian/README.librtlsdr new file mode 100644 index 0000000..c3128f1 --- /dev/null +++ b/debian/README.librtlsdr @@ -0,0 +1,18 @@ +This package includes binaries that are statically linked against librtlsdr, +which is licensed under the GPL: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +The upstream source is available at https://github.com/steve-m/librtlsdr diff --git a/debian/dump1090-fa.docs b/debian/dump1090-fa.docs new file mode 100644 index 0000000..2839344 --- /dev/null +++ b/debian/dump1090-fa.docs @@ -0,0 +1 @@ +debian/README.librtlsdr