-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uwsgi: the php plugin needs to link with session.so
On NixOS the session.so php extension is a separate package (and not builtin in libphp.so). But since the uwsgi php plugin uses the session mechanisms, we need to link the plugin to that library too. With this change uwsgipluginpy is hacked to take an additional UWSGICONFIG_PHP_LDFLAGS environment variable and add it to its LDFLAGS, and then in the nix expression the UWSGICONFIG_PHP_LDFLAGS is set to point to php.extensions.session
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/plugins/php/uwsgiplugin.py b/plugins/php/uwsgiplugin.py | ||
index d930c44e..2fcbc22a 100644 | ||
--- a/plugins/php/uwsgiplugin.py | ||
+++ b/plugins/php/uwsgiplugin.py | ||
@@ -17,6 +17,8 @@ php_version = os.popen(PHPPATH + ' --version').read().rstrip().split('.')[0] | ||
CFLAGS = [os.popen(PHPPATH + ' --includes').read().rstrip(), '-Wno-sign-compare'] | ||
LDFLAGS = os.popen(PHPPATH + ' --ldflags').read().rstrip().split() | ||
|
||
+LDFLAGS.append(os.environ.get('UWSGICONFIG_PHP_LDFLAGS', [])) | ||
+ | ||
if ld_run_path: | ||
LDFLAGS.append('-L%s' % ld_run_path) | ||
os.environ['LD_RUN_PATH'] = ld_run_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.