Makefile: Use -fPIC when compiling protobuf-c-text
authorRobert Swiecki <robert@swiecki.net>
Sun, 28 May 2017 17:57:25 +0000 (19:57 +0200)
committerRobert Swiecki <robert@swiecki.net>
Sun, 28 May 2017 17:57:25 +0000 (19:57 +0200)
Makefile

index 5535d06363a87eb428100653ce23d3f5460bc9d3..87a7b3d1e1dda1c96bf79aed0506ba0c8bb221f7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -86,7 +86,7 @@ endif
 protobuf-c-text:
 ifeq ("$(wildcard protobuf-c-text/configure)","")
        git submodule update --init
-       sh -c "cd protobuf-c-text; CFLAGS=\"$(EXTRA_CFLAGS)\" ./autogen.sh;"
+       sh -c "cd protobuf-c-text; CFLAGS=\"-fPIC $(EXTRA_CFLAGS)\" ./autogen.sh;"
 endif
 
 kafel/libkafel.a: