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 541b93279f
commit a17cc0181a

View File

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