Skip to content

Commit a595830

Browse files
author
Giorgos Tzampanakis
committed
Add pg_config libdir to the library's rpath
Close #1356.
1 parent 3430dcd commit a595830

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,9 @@ def finalize_options(self):
372372
self.libraries.append("pq")
373373

374374
try:
375-
self.library_dirs.append(pg_config_helper.query("libdir"))
375+
pg_config_libdir = pg_config_helper.query("libdir")
376+
self.library_dirs.append(pg_config_libdir)
377+
self.rpath.append(pg_config_libdir)
376378
self.include_dirs.append(pg_config_helper.query("includedir"))
377379
self.include_dirs.append(pg_config_helper.query("includedir-server"))
378380

0 commit comments

Comments
 (0)