summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/swig/python/setup.py
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2016-05-03 04:27:07 +0000
committerNanang Izzuddin <nanang@teluu.com>2016-05-03 04:27:07 +0000
commitd3a32eaf6bc179dc910a2c79c4802ccb6f30ebbe (patch)
tree5e9f52815cc680cca862c2d4646c3daa9f8988f5 /pjsip-apps/src/swig/python/setup.py
parent4c2a411e16ec00e47665e9dbefd03846131d7b48 (diff)
Misc (re #1882): Update Python setup.py to get 'make' from environment variable MAKE, if it doesn't exist, just use 'make'. On some systems, such as FreeBSD, default 'make' command is not GNU compatible.
Thanks George Joseph for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5281 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/swig/python/setup.py')
-rw-r--r--pjsip-apps/src/swig/python/setup.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/pjsip-apps/src/swig/python/setup.py b/pjsip-apps/src/swig/python/setup.py
index 0cb1fc54..e8b1d119 100644
--- a/pjsip-apps/src/swig/python/setup.py
+++ b/pjsip-apps/src/swig/python/setup.py
@@ -61,28 +61,31 @@ if pj_version_suffix:
#print 'PJ_VERSION = "'+ pj_version + '"'
+# Get 'make' from environment variable if any
+MAKE = os.environ.get('MAKE') or "make"
+
# Get targetname
-f = os.popen("make --no-print-directory -f helper.mak target_name")
+f = os.popen("%s --no-print-directory -f helper.mak target_name" % MAKE)
pj_target_name = f.read().rstrip("\r\n")
f.close()
# Fill in extra_compile_args
extra_compile_args = []
-f = os.popen("make --no-print-directory -f helper.mak cflags")
+f = os.popen("%s --no-print-directory -f helper.mak cflags" % MAKE)
for line in f:
extra_compile_args.append(line.rstrip("\r\n"))
f.close()
# Fill in libraries
libraries = []
-f = os.popen("make --no-print-directory -f helper.mak libs")
+f = os.popen("%s --no-print-directory -f helper.mak libs" % MAKE)
for line in f:
libraries.append(line.rstrip("\r\n"))
f.close()
# Fill in extra_link_args
extra_link_args = []
-f = os.popen("make --no-print-directory -f helper.mak ldflags")
+f = os.popen("%s --no-print-directory -f helper.mak ldflags" % MAKE)
for line in f:
extra_link_args.append(line.rstrip("\r\n"))
f.close()