03e7496d07
- fix build on head - remove stale options and patch - chase the update in dependent ports PR: 178279 Submitted by: glebius (maintainer)
27 lines
944 B
Text
27 lines
944 B
Text
--- SConstruct.orig 2013-05-01 09:44:21.000000000 +0400
|
|
+++ SConstruct 2013-05-01 16:30:55.000000000 +0400
|
|
@@ -590,7 +590,14 @@
|
|
#ifdef __LITTLE_ENDIAN__
|
|
#undef WORDS_BIGENDIAN
|
|
#else
|
|
-#include <endian.h>
|
|
+''')
|
|
+
|
|
+if config.CheckHeader("endian.h"):
|
|
+ confdefs.append("#include <endian.h>")
|
|
+elif config.CheckHeader("sys/endian.h"):
|
|
+ confdefs.append("#include <sys/endian.h>")
|
|
+
|
|
+confdefs.append('''
|
|
#if __BYTE_ORDER == __BIG_ENDIAN
|
|
#define WORDS_BIGENDIAN 1
|
|
#elif __BYTE_ORDER == __LITTLE_ENDIAN
|
|
@@ -1242,7 +1249,7 @@
|
|
if not env['python']:
|
|
python_install = []
|
|
else:
|
|
- python_lib_dir = sysconfig.get_python_lib(plat_specific=1)
|
|
+ python_lib_dir = sysconfig.get_python_lib(plat_specific=1,prefix=env['prefix'])
|
|
python_module_dir = python_lib_dir + os.sep + 'gps'
|
|
python_extensions_install = python_env.Install( DESTDIR + python_module_dir,
|
|
python_built_extensions)
|