From f5fa53118a161a665bb52d8a655f22dcedbbce51 Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Thu, 3 Apr 2014 12:20:03 +0200 Subject: [PATCH] Build fails: Adding protocol.o object to library and using -fPIC --- src/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index 6c2ab9a9..26d4474a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -69,6 +69,8 @@ tincd_SOURCES = \ utils.c utils.h \ xalloc.h +tincd_CFLAGS = -fPIC + tinc_SOURCES = \ dropin.c dropin.h \ getopt.c getopt.h \ @@ -85,6 +87,8 @@ tinc_SOURCES = \ top.c top.h \ utils.c utils.h +tinc_CFLAGS = -fPIC + sptps_test_SOURCES = \ logger.c logger.h \ sptps.c sptps.h \ @@ -102,6 +106,11 @@ lib_LTLIBRARIES = libmeshlink.la libmeshlink_la_SOURCES = \ libmeshlink.c libmeshlink.h +libmeshlink_la_CFLAGS = -fPIC + +libmeshlink_la_LIBADD = \ + protocol.o + ## Conditionally compile device drivers if LINUX -- 2.39.5