Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / uwsgi / additional-php-ldflags.patch
blob8549d5c2d03cfa7d835da5c502aa9be1c7ff0620
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', []))
11 if ld_run_path:
12 LDFLAGS.append('-L%s' % ld_run_path)
13 os.environ['LD_RUN_PATH'] = ld_run_path