Skip to content

Commit

Permalink
Use -undefined dynamic_lookup for linking loadable modules on MacOS
Browse files Browse the repository at this point in the history
Newer version of the linker on MacOS provide a deprecation warning when
using the `-undefined` flag with the `suppress` value. This is cause CI to
fail to do logs not matching when building VPI modules.

Switch to using the `dynamic_lookup` value for the flag instead, which
resolves the warning and is the behavior we want when loading the module.

Signed-off-by: Lars-Peter Clausen <[email protected]>
  • Loading branch information
larsclausen committed Dec 27, 2024
1 parent 06077ed commit 66216de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ case "${host}" in
;;
*-*-darwin1.[0123])
shared="-bundle -undefined suppress"
shared="-bundle -undefined dynamic_lookup"
;;
*-*-darwin*)
shared="-bundle -undefined suppress -flat_namespace"
shared="-bundle -undefined dynamic_lookup -flat_namespace"
;;
*-*-solaris*)
Expand Down

0 comments on commit 66216de

Please sign in to comment.