1 | --- ./installer/dcheck.py.orig 2014-03-10 14:51:59.000000000 +0100 |
---|
2 | +++ ./installer/dcheck.py 2014-03-10 14:56:40.000000000 +0100 |
---|
3 | @@ -46,7 +46,8 @@ |
---|
4 | def update_ld_output(): |
---|
5 | # For library checks |
---|
6 | global ld_output |
---|
7 | - status, ld_output = utils.run('%s -p' % os.path.join(utils.which('ldconfig'), 'ldconfig'), log_output=False) |
---|
8 | +# status, ld_output = utils.run('%s -p' % os.path.join(utils.which('ldconfig'), 'ldconfig'), log_output=False) |
---|
9 | + status, ld_output = utils.run('%s @PREFIX@/lib' % os.path.join(utils.which('find'), 'find'), log_output=False) |
---|
10 | |
---|
11 | if status != 0: |
---|
12 | log.debug("ldconfig failed.") |
---|
13 | @@ -101,7 +102,7 @@ |
---|
14 | log.debug("Not found.") |
---|
15 | return False |
---|
16 | |
---|
17 | -def check_file(f, dir="/usr/include"): |
---|
18 | +def check_file(f, dir="@PREFIX@/include"): |
---|
19 | log.debug("Searching for file '%s' in '%s'..." % (f, dir)) |
---|
20 | for w in utils.walkFiles(dir, recurse=True, abs_paths=True, return_folders=False, pattern=f): |
---|
21 | log.debug("File found at '%s'" % w) |
---|
22 | @@ -355,6 +356,7 @@ |
---|
23 | return Image.VERSION |
---|
24 | |
---|
25 | def get_libpthread_version(): |
---|
26 | + return '-' #built-in for Darwin |
---|
27 | try: |
---|
28 | import sys, ctypes, ctypes.util |
---|
29 | except ImportError: |
---|