diff options
author | Azat Khuzhin <azat@libevent.org> | 2022-03-10 23:11:14 +0300 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2022-03-10 23:54:58 +0300 |
commit | 6349e94a0a4fe361ad78921ff84bfe3be94b2028 (patch) | |
tree | 68117166cf6f0c876299b03b485d4e5b1b6bae66 /test-export/test-export.py | |
parent | 3da71856a73a28e05c18f9f2d4bf7fcc6e46f4ce (diff) | |
download | libevent-6349e94a0a4fe361ad78921ff84bfe3be94b2028.tar.gz |
Do not install RPATH for install tree by default
In ce8be2385b5fee16859a630fca0c98ad290c8e21 ("cmake: set rpath for
libraries on linux") RPATH was first instroduced.
Later in 6d09efe8686de824adf3d8810bbe0d5c386643e4 ("Set RPATH only if
installation is done into non system directory") it was set only if it
was installed to non system directory.
But absolute RPATH not a good default, let's change this.
Fixes: #920
Diffstat (limited to 'test-export/test-export.py')
-rw-r--r-- | test-export/test-export.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test-export/test-export.py b/test-export/test-export.py index a6def1ca..3320e3b2 100644 --- a/test-export/test-export.py +++ b/test-export/test-export.py @@ -176,7 +176,7 @@ if platform.system() == "Windows": dllpath = os.path.join(prefix, "lib") else: prefix = "/usr/local" -exec_cmd('cmake -DCMAKE_INSTALL_PREFIX="%s" ..' % prefix, True) +exec_cmd('cmake -DCMAKE_SKIP_INSTALL_RPATH=OFF -DCMAKE_INSTALL_PREFIX="%s" ..' % prefix, True) exec_cmd('cmake --build . --target install', True) config_backup() os.environ["CMAKE_PREFIX_PATH"] = os.path.join(prefix, "lib/cmake/libevent") @@ -191,7 +191,7 @@ del os.environ["CMAKE_PREFIX_PATH"] print("[test-export] test for install tree(in non-system-wide path)") exec_cmd("cmake --build . --target uninstall", True) tempdir = tempfile.TemporaryDirectory() -cmd = 'cmake -DCMAKE_INSTALL_PREFIX="%s" ..' % tempdir.name +cmd = 'cmake -DCMAKE_SKIP_INSTALL_RPATH=OFF -DCMAKE_INSTALL_PREFIX="%s" ..' % tempdir.name exec_cmd(cmd, True) exec_cmd("cmake --build . --target install", True) config_backup() |