Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sage
Path: blob/develop/subprojects/packagefiles/ecl/src/meson.build
6381 views
1
libpath = meson.current_build_dir() + '/dist/usr/local/lib64'
2
ecldir = meson.current_build_dir() + '/dist/usr/local/lib64/ecl-24.5.10'
3
include_path = meson.current_build_dir() + '/build'
4
5
proj = mod.add_project('configure',
6
configure_options : [
7
# ecl embeds the include path, so we have to set it to the *installed* path
8
# workaround for https://gitlab.com/embeddable-common-lisp/ecl/-/issues/780
9
'--includedir=' + include_path,
10
'--enable-manual=no',
11
'--enable-unicode=yes',
12
'--with-defsystem',
13
],
14
env: {
15
'LDFLAGS': '-Wl,-rpath,' + libpath + ' -L' + libpath,
16
# Workaround for https://gitlab.com/embeddable-common-lisp/ecl/-/issues/779
17
# Need to tell ECL where to find the fas files after installation
18
'CFLAGS': '-DECLDIR=\"' + ecldir + '\"',
19
}
20
)
21
22
ecl_dep = proj.dependency('ecl')
23
# Ugly workaround to include the rpath in the dependency
24
# https://github.com/mesonbuild/meson/issues/12970
25
ecl_rpath_dep = declare_dependency(
26
link_args: '-Wl,-rpath,' + libpath + ' -L' + libpath,
27
include_directories: [include_directories('build')],
28
)
29
ecl_dep = declare_dependency(
30
dependencies : [ecl_dep, ecl_rpath_dep],
31
variables: {
32
'ecl_bin' : meson.current_build_dir() + '/dist/usr/local/bin/ecl',
33
'ecldir' : ecldir,
34
},
35
)
36
meson.override_dependency('ecl', ecl_dep)
37
38