Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-21 16:13:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-21 16:13:08 +0300
commit9ef0eed4b64325092dc90bf2db0ca9825fd94f83 (patch)
tree179c4ae843eb3192683457e19d2ea903b8690b70 /source/blender/blenlib
parentef60ae95215ef9fe88a93e97f70413e8075506e4 (diff)
build python module without binreloc, add dummy argv[0] to initialize bprogname.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/CMakeLists.txt3
-rw-r--r--source/blender/blenlib/intern/path_util.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenlib/CMakeLists.txt b/source/blender/blenlib/CMakeLists.txt
index 9f6b1a8ab05..d5ed8956f7a 100644
--- a/source/blender/blenlib/CMakeLists.txt
+++ b/source/blender/blenlib/CMakeLists.txt
@@ -133,7 +133,8 @@ set(SRC
intern/dynamiclist.h
)
-if(CMAKE_SYSTEM_NAME MATCHES "Linux")
+if(WITH_BINRELOC)
+ add_definitions(-DWITH_BINRELOC)
list(APPEND INC "${BINRELOC_INC}")
endif()
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index ec137d21033..10455e806b3 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -71,7 +71,7 @@
#else /* non windows */
-#ifdef __linux__
+#ifdef WITH_BINRELOC
#include "binreloc.h"
#endif
@@ -1661,7 +1661,7 @@ void BLI_where_am_i(char *fullname, const int maxlen, const char *name)
#endif
-#ifdef __linux__
+#ifdef WITH_BINRELOC
/* linux uses binreloc since argv[0] is not relyable, call br_init( NULL ) first */
path = br_find_exe( NULL );
if (path) {