Implement relocatable builds on Linux

- Change the path of the Sys folder to the executable's location
- Add LINUX_LOCAL_DEV flag to use relocatable version on Linux
- Add CMake definition for relocatable build
This commit is contained in:
Mathieu Comandon
2015-11-10 12:49:04 -08:00
parent 973118511a
commit f2ae1a2545
4 changed files with 20 additions and 6 deletions
+6
View File
@@ -312,6 +312,12 @@ if(WIN32)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
endif(WIN32)
# Add an option to build relocatable binaries on Linux
# The Sys folder will need to be copied to the Binaries folder.
if(UNIX)
add_definitions(-DLINUX_LOCAL_DEV=0)
endif(UNIX)
# Dolphin requires threads.
# The Apple build may not need an explicit flag because one of the
# frameworks may already provide it.