1 diff --git a/plugins/php/uwsgiplugin.py b/plugins/php/uwsgiplugin.py
2 index d930c44e..2fcbc22a 100644
3 --- a/plugins/php/uwsgiplugin.py
4 +++ b/plugins/php/uwsgiplugin.py
5 @@ -17,6 +17,8 @@ php_version = os.popen(PHPPATH + ' --version').read().rstrip().split('.')[0]
6 CFLAGS = [os.popen(PHPPATH + ' --includes').read().rstrip(), '-Wno-sign-compare']
7 LDFLAGS = os.popen(PHPPATH + ' --ldflags').read().rstrip().split()
9 +LDFLAGS.append(os.environ.get('UWSGICONFIG_PHP_LDFLAGS', []))
12 LDFLAGS.append('-L%s' % ld_run_path)
13 os.environ['LD_RUN_PATH'] = ld_run_path