From: Saverio Proto Date: Thu, 3 Apr 2014 10:20:03 +0000 (+0200) Subject: Build fails: Adding protocol.o object to library and using -fPIC X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=f5fa53118a161a665bb52d8a655f22dcedbbce51;p=meshlink Build fails: Adding protocol.o object to library and using -fPIC --- 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