Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Compile everything as position-independent code

This fixes compilation issues where the shared Python
module gets linked to the static PS Move API library.

The solution is not perfect, but for now we opt for
having a nicer installation experience (self-contained
Python and Java modules) instead of doing it in a clean
way (shared libraries all over the place).
  • Loading branch information...
commit 3eeef2def423adb152c918fa5d0bfb562fdcd4bc 1 parent 1e6ac17
@thp authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 CMakeLists.txt
View
4 CMakeLists.txt
@@ -52,6 +52,10 @@ option(PSMOVE_USE_DEBUG "Build for debugging" OFF)
# Write debugging images for tracking calibration to home directory
option(PSMOVE_USE_TRACKER_TRACE "Write tracker calibration images to disk" OFF)
+
+# https://github.com/thp/psmoveapi/issues/29
+add_definitions(-fPIC)
+
# Debugging output
if(PSMOVE_USE_DEBUG)
add_definitions(-DPSMOVE_DEBUG)

0 comments on commit 3eeef2d

Please sign in to comment.
Something went wrong with that request. Please try again.