Skip to content

Instantly share code, notes, and snippets.

@gdamjan
Created December 29, 2016 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdamjan/bef17c8654f258485037945e2b5994ce to your computer and use it in GitHub Desktop.
Save gdamjan/bef17c8654f258485037945e2b5994ce to your computer and use it in GitHub Desktop.
patch to properly link php on alpine linux
diff --git a/plugins/php/uwsgiplugin.py b/plugins/php/uwsgiplugin.py
index 8657eb70..5d2302c7 100644
--- a/plugins/php/uwsgiplugin.py
+++ b/plugins/php/uwsgiplugin.py
@@ -22,6 +22,7 @@ if ld_run_path:
os.environ['LD_RUN_PATH'] = ld_run_path
LIBS = [os.popen(PHPPATH + ' --libs').read().rstrip(), '-lphp' + php_version]
+LIBS.append('/usr/lib/php7/modules/session.a')
phplibdir = os.environ.get('UWSGICONFIG_PHPLIBDIR')
if phplibdir:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment