better symbol detection for pypy

This commit is contained in:
Unbit
2013-08-11 08:41:02 +02:00
parent 36486caabb
commit be4d324f6b
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -144,7 +144,13 @@ ready:
}
else {
char *start = dlsym(RTLD_DEFAULT, "uwsgi_pypy_setup_start");
if (!start) {
start = dlsym(RTLD_DEFAULT, "_uwsgi_pypy_setup_start");
}
char *end = dlsym(RTLD_DEFAULT, "uwsgi_pypy_setup_end");
if (!end) {
end = dlsym(RTLD_DEFAULT, "_uwsgi_pypy_setup_end");
}
if (start && end) {
buffer = uwsgi_concat2n(start, end-start, "", 0);
}
+1 -1
View File
@@ -1122,7 +1122,7 @@ class uConf(object):
report['xml'] = 'expat'
if self.get('plugin_dir'):
self.cflags.append('-DUWSGI_PLUGIN_DIR=\\"%s\\"' % self.get('plugin_dir'))
self.cflags.append('-DUWSGI_PLUGIN_DIR="\\"%s\\""' % self.get('plugin_dir'))
report['plugin_dir'] = self.get('plugin_dir')
if self.get('debug'):