cc: Ignore undefined symbols on macOS
commitab82d1738ab27a7f82e7ad4e73d51c313237ec72
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 10 Aug 2022 17:11:58 +0000 (10 18:11 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 10 Aug 2022 17:37:40 +0000 (10 18:37 +0100)
tree75eadd7f893b7992f86f50fd8e6118f6a251ad58
parentb919a114e835ac2e1c1328c2b8f8fc114fc2b68b
cc: Ignore undefined symbols on macOS

Compiling and CC plugin on macOS:

Undefined symbols for architecture arm64:
  "_nbdkit_absolute_path", referenced from:
      _password_config in test-read-password-plugin-6093ac.o
  "_nbdkit_error", referenced from:
      _password_config in test-read-password-plugin-6093ac.o
      _password_config_complete in test-read-password-plugin-6093ac.o

To work around this we need to tell the linker to ignore undefined
symbols.  On macOS libtool uses the same flag already which is why our
regular plugins/filters can be compiled.
plugins/cc/Makefile.am
plugins/cc/cc.c