]> git.meshlink.io Git - meshlink/commitdiff
Build fails: Adding protocol.o object to library and using -fPIC
authorSaverio Proto <zioproto@gmail.com>
Thu, 3 Apr 2014 10:20:03 +0000 (12:20 +0200)
committerSaverio Proto <zioproto@gmail.com>
Thu, 3 Apr 2014 10:20:03 +0000 (12:20 +0200)
src/Makefile.am

index 6c2ab9a9567cdbb1e342085acd79a0d08e822d75..26d4474a6af5ed046ff0611d04e08c443a00f50f 100644 (file)
@@ -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