From 7bce077ea81d7dbe10f7ba33eec0e061453f3f12 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 21 Apr 2017 05:37:24 -0500 Subject: [PATCH] Made libraries use position indepentent code (PIC) --- src/ox/clargs/CMakeLists.txt | 7 +++++++ src/ox/fs/CMakeLists.txt | 7 +++++++ src/ox/std/CMakeLists.txt | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/src/ox/clargs/CMakeLists.txt b/src/ox/clargs/CMakeLists.txt index 172c773ae..a096079cc 100644 --- a/src/ox/clargs/CMakeLists.txt +++ b/src/ox/clargs/CMakeLists.txt @@ -5,6 +5,13 @@ add_library( clargs.cpp ) +set_property( + TARGET + OxClArgs + PROPERTY + POSITION_INDEPENDENT_CODE ON +) + install( FILES clargs.hpp diff --git a/src/ox/fs/CMakeLists.txt b/src/ox/fs/CMakeLists.txt index c7cd44c28..5b95186dc 100644 --- a/src/ox/fs/CMakeLists.txt +++ b/src/ox/fs/CMakeLists.txt @@ -5,6 +5,13 @@ add_library( filesystem.cpp ) +set_property( + TARGET + OxFS + PROPERTY + POSITION_INDEPENDENT_CODE ON +) + if(OX_BUILD_EXEC STREQUAL "ON") add_executable( oxfstool diff --git a/src/ox/std/CMakeLists.txt b/src/ox/std/CMakeLists.txt index c0d2f10e2..70d68550f 100644 --- a/src/ox/std/CMakeLists.txt +++ b/src/ox/std/CMakeLists.txt @@ -7,6 +7,13 @@ add_library( strops.cpp ) +set_property( + TARGET + OxStd + PROPERTY + POSITION_INDEPENDENT_CODE ON +) + install( FILES byteswap.hpp