diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-29 22:41:37 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-01 10:01:30 +0200 |
| commit | 04c0c46c73742d325948b35072da501e07b7ba57 (patch) | |
| tree | bad7d30bc84b88d5244f426fe5dd6b0bf96a6728 | |
| parent | b3563f2bea0b853864dcc34acb97c2cff2a7a4d8 (diff) | |
Don't "pollute" the library path with /usr/local/lib.
Sometimes we don't want to use the stuff in there.
| -rw-r--r-- | cscript | 2 | ||||
| -rw-r--r-- | wscript | 8 |
2 files changed, 3 insertions, 7 deletions
@@ -788,6 +788,8 @@ def package_rpm(target, cpu, version, options): make_spec('dcpomatic2.spec', version, target, options, requires) cmd = 'rpmbuild --define "_topdir %s" -bb dcpomatic2.spec' % topdir + # On Centos 7 we build and install boost ourselves, so we must look for it in the right place + target.set('LINKFLAGS', '-L/usr/local/lib') target.command(cmd) rpms = [] @@ -196,7 +196,6 @@ def configure(conf): int main() { std::locale::global (boost::locale::generator().generate ("")); }\n """, msg='Checking for boost locale library', - libpath='/usr/local/lib', lib=['boost_locale%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix], uselib_store='BOOST_LOCALE') @@ -249,7 +248,7 @@ def configure(conf): mandatory=True, msg='Checking for libicu', okmsg='yes', - libpath=['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'], + libpath=['/usr/lib', '/usr/lib/x86_64-linux-gnu'], lib=['icuio', 'icui18n', 'icudata', 'icuuc'], uselib_store='ICU') @@ -399,7 +398,6 @@ def configure(conf): int main() { struct jpeg_compress_struct compress; jpeg_create_compress (&compress); return 0; } """, msg='Checking for libjpeg', - libpath='/usr/local/lib', lib=['jpeg'], uselib_store='JPEG') @@ -410,7 +408,6 @@ def configure(conf): int main() { ext4_mount("ext4_fs", "/mp/", false); }\n """, msg='Checking for lwext4 library', - libpath='/usr/local/lib', lib=['lwext4', 'blockdev'], uselib_store='LWEXT4') @@ -549,7 +546,6 @@ def configure(conf): int main() { boost::thread t; }\n """, msg='Checking for boost threading library', - libpath='/usr/local/lib', lib=[boost_thread, 'boost_system%s' % boost_lib_suffix], uselib_store='BOOST_THREAD') @@ -558,7 +554,6 @@ def configure(conf): int main() { boost::filesystem::copy_file ("a", "b"); }\n """, msg='Checking for boost filesystem library', - libpath='/usr/local/lib', lib=['boost_filesystem%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix], uselib_store='BOOST_FILESYSTEM') @@ -567,7 +562,6 @@ def configure(conf): int main() { boost::gregorian::day_clock::local_day(); }\n """, msg='Checking for boost datetime library', - libpath='/usr/local/lib', lib=['boost_date_time%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix], uselib_store='BOOST_DATETIME') |
