Skip to content

Commit

Permalink
meson.build: test opencascade with as-needed
Browse files Browse the repository at this point in the history
so that we do not need unneccessary packages
  • Loading branch information
carrotIndustries committed Sep 14, 2024
1 parent a5ded14 commit afa25d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit afa25d7

Please sign in to comment.