diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2016-05-03 04:27:07 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2016-05-03 04:27:07 +0000 |
commit | d3a32eaf6bc179dc910a2c79c4802ccb6f30ebbe (patch) | |
tree | 5e9f52815cc680cca862c2d4646c3daa9f8988f5 /pjsip-apps/src/python | |
parent | 4c2a411e16ec00e47665e9dbefd03846131d7b48 (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/python')
-rw-r--r-- | pjsip-apps/src/python/setup.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pjsip-apps/src/python/setup.py b/pjsip-apps/src/python/setup.py index 69a98594..9d10eab3 100644 --- a/pjsip-apps/src/python/setup.py +++ b/pjsip-apps/src/python/setup.py @@ -61,24 +61,26 @@ if pj_version_suffix: #print 'PJ_VERSION = "'+ pj_version + '"' +# Get 'make' from environment variable if any +MAKE = os.environ.get('MAKE') or "make" # Fill in pj_inc_dirs pj_inc_dirs = [] -f = os.popen("make -f helper.mak inc_dir") +f = os.popen("%s -f helper.mak inc_dir" % MAKE) for line in f: pj_inc_dirs.append(line.rstrip("\r\n")) f.close() # Fill in pj_lib_dirs pj_lib_dirs = [] -f = os.popen("make -f helper.mak lib_dir") +f = os.popen("%s -f helper.mak lib_dir" % MAKE) for line in f: pj_lib_dirs.append(line.rstrip("\r\n")) f.close() # Fill in pj_libs pj_libs = [] -f = os.popen("make -f helper.mak libs") +f = os.popen("%s -f helper.mak libs" % MAKE) for line in f: pj_libs.append(line.rstrip("\r\n")) f.close() |