]> git.eshelyaron.com Git - emacs.git/commit
Support .dylib suffix for modules on macOS (Bug#36226).
authorPhilipp Stephani <phst@google.com>
Wed, 25 Dec 2019 14:41:39 +0000 (15:41 +0100)
committerPhilipp Stephani <phst@google.com>
Wed, 25 Dec 2019 14:42:20 +0000 (15:42 +0100)
commit28268e47d844215b11f9a731d2bedb58bee0b343
tree320b5f1b359451f8ad7dc60da56d2b221c371b84
parent7c5d6a2afc6c23a7fff8456f506ee2aa2d37a3b9
Support .dylib suffix for modules on macOS (Bug#36226).

On macOS, shared libraries typically have the suffix .dylib.  This
commit switches the module suffix to .dylib on Darwin to account for
that.  To also support the .so suffix, introduce the concept of a
secondary module suffix.

* configure.ac: Switch MODULES_SUFFIX to .dylib for Darwin, introduce
MODULES_SECONDARY_SUFFIX.

* src/lread.c (Fload, syms_of_lread): Also use
MODULES_SECONDARY_SUFFIX if defined.

* test/src/emacs-module-tests.el (module-darwin-secondary-suffix): New
unit test.
configure.ac
src/lread.c
test/src/emacs-module-tests.el