From fc855bac9a1bae22f7a9b71815bd6033f2158505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 28 Apr 2017 11:33:10 +0300 Subject: [PATCH] Update Avrorouter.md Add note about Avro C library and -fPIC. --- Documentation/Routers/Avrorouter.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/Routers/Avrorouter.md b/Documentation/Routers/Avrorouter.md index 8676955a3..686bcfd4a 100644 --- a/Documentation/Routers/Avrorouter.md +++ b/Documentation/Routers/Avrorouter.md @@ -264,5 +264,12 @@ To build the avrorouter from source, you will need the [Avro C](https://avro.apa library, liblzma, [the Jansson library](http://www.digip.org/jansson/) and sqlite3 development headers. When configuring MaxScale with CMake, you will need to add `-DBUILD_CDC=Y` to build the CDC module set. +The Avro C library needs to be build with position independent code enabled. You can do this by +adding the following flags to the CMake invocation when configuring the Avro C library. + +``` +-DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC +``` + For more details about building MaxScale from source, please refer to the [Building MaxScale from Source Code](../Getting-Started/Building-MaxScale-from-Source-Code.md) document.