Combine included libraries into one parameter

build_ext only grabs one '-l' parameter, not multiple, which is weird as
one time I thought it did.
This commit is contained in:
Jason Erickson 2020-11-13 12:05:20 -07:00
parent 87dc783bc6
commit f5e870dcc0

View File

@ -326,7 +326,7 @@ def build_psycopg():
add_pg_config_path()
run_python(
["setup.py", "build_ext", "--have-ssl"]
+ ["-l", "libpgcommon", "-l", "libpgport"]
+ ["-l", "libpgcommon libpgport"]
+ ["-L", opt.ssl_build_dir / 'lib']
+ ['-I', opt.ssl_build_dir / 'include']
)