Skip to content

Commit

Permalink
Add pg_config libdir to the library's rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgos Tzampanakis committed Sep 22, 2021
1 parent 3430dcd commit a595830
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ def finalize_options(self):
self.libraries.append("pq")

try:
self.library_dirs.append(pg_config_helper.query("libdir"))
pg_config_libdir = pg_config_helper.query("libdir")
self.library_dirs.append(pg_config_libdir)
self.rpath.append(pg_config_libdir)
self.include_dirs.append(pg_config_helper.query("includedir"))
self.include_dirs.append(pg_config_helper.query("includedir-server"))

Expand Down

0 comments on commit a595830

Please sign in to comment.