summaryrefslogtreecommitdiff
path: root/package/supl/patches/patch-src_Makefile
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2015-02-24 12:47:13 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-28 10:14:36 +0100
commit1f9113fee2da6c57c561616428439e2cdebf10e4 (patch)
treedf39441d695babe4d9ead92fe4d4c9485df6446c /package/supl/patches/patch-src_Makefile
parent49e03ead81a32c7443a1c38ec06ead54162fda93 (diff)
port supl library package
Also enhance the client to allow binding to an interface.
Diffstat (limited to 'package/supl/patches/patch-src_Makefile')
-rw-r--r--package/supl/patches/patch-src_Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/supl/patches/patch-src_Makefile b/package/supl/patches/patch-src_Makefile
new file mode 100644
index 000000000..cec5a4771
--- /dev/null
+++ b/package/supl/patches/patch-src_Makefile
@@ -0,0 +1,16 @@
+ - use pkg-config everywhere, otherwise libs are not found
+--- trunk.orig/src/Makefile 2011-10-17 20:09:22.000000000 +0200
++++ trunk/src/Makefile 2015-02-09 16:48:37.244935714 +0100
+@@ -21,10 +21,10 @@ DIST = Makefile $(PROGRAM_SOURCE) $(SUPL
+ all: supl-client supl-proxy supl-cert
+
+ supl-client: libsupl.so supl-client.o
+- $(CC) -o $@ supl-client.o -L. -lsupl -lssl -lm
++ $(CC) -o $@ supl-client.o -L. -lsupl $(shell pkg-config --libs openssl) -lm
+
+ supl-proxy: libsupl.so supl-proxy.o
+- $(CC) -o $@ supl-proxy.o -L. -lsupl -lssl -lm
++ $(CC) -o $@ supl-proxy.o -L. -lsupl $(shell pkg-config --libs openssl) -lm
+
+ supl-cert: supl-cert.o
+ $(CC) -o $@ supl-cert.o $(shell pkg-config --libs openssl) -lm