You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/07/10 13:02:03 UTC
[plc4x] branch feature/s7-cpp updated: - Make the build work
correctly on Ubuntu Linux
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch feature/s7-cpp
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/feature/s7-cpp by this push:
new f4847a8 - Make the build work correctly on Ubuntu Linux
f4847a8 is described below
commit f4847a8813ef7cc3788f11838856165089d520a8
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Wed Jul 10 15:01:53 2019 +0200
- Make the build work correctly on Ubuntu Linux
---
plc4cpp/CMakeLists.txt | 1 +
plc4cpp/pom.xml | 2 ++
2 files changed, 3 insertions(+)
diff --git a/plc4cpp/CMakeLists.txt b/plc4cpp/CMakeLists.txt
index cb0778a..417e5b7 100644
--- a/plc4cpp/CMakeLists.txt
+++ b/plc4cpp/CMakeLists.txt
@@ -21,6 +21,7 @@ cmake_minimum_required(VERSION 3.7)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
# Save the root directory
set(PLC4CPP_ROOT_DIR ${CMAKE_SOURCE_DIR})
diff --git a/plc4cpp/pom.xml b/plc4cpp/pom.xml
index 4855d0a..4d102d7 100644
--- a/plc4cpp/pom.xml
+++ b/plc4cpp/pom.xml
@@ -226,6 +226,8 @@
<argument>--with-log</argument>
<!-- On Windows machines the build failed, if this was not explicitly set -->
<argument>address-model=64</argument>
+ <!-- On Linux machines the build of llibraries using boos failed, if this is not set -->
+ <argument>cxxflags=-fPIC</argument>
</arguments>
<workingDirectory>${project.build.directory}/boost_${boost.version.underline}</workingDirectory>
</configuration>