1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From afa25d7e50f75ced34047cf8c3ffd17e3090cffe Mon Sep 17 00:00:00 2001
From: "Lukas K." <lu@0x83.eu>
Date: Sat, 14 Sep 2024 17:43:43 +0200
Subject: [PATCH] meson.build: test opencascade with as-needed
so that we do not need unneccessary packages
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 80cff149..10314016 100644
--- a/meson.build
+++ b/meson.build
@@ -28,7 +28,7 @@ if not opencascade.found()
opencascade = dependency('OCE', method : 'cmake')
endif
-if not cxx.links('int main(void) {return 0;}', dependencies: opencascade)
+if not cxx.links('int main(void) {return 0;}', dependencies: opencascade, args:'-Wl,--as-needed')
message('opencascade link args are broken, replacing')
# on ubuntu 20.04, the link args are broken and are missing the -l for some reason??
opencascade = declare_dependency(dependencies: opencascade.partial_dependency(compile_args: true, includes:true), link_args:['-lTKSTEP', '-lTKernel', '-lTKXCAF', '-lTKXSBase', '-lTKBRep', '-lTKCDF', '-lTKXDESTEP', '-lTKLCAF', '-lTKMath', '-lTKMesh', '-lTKTopAlgo', '-lTKPrim', '-lTKBO', '-lTKShHealing', '-lTKBRep', '-lTKG3d', '-lTKGeomBase', '-lTKHLR'])
--
2.46.0
|