@@ -235,8 +235,8 @@ For example::
235235 load.
236236 - Finds the library in the same search paths as if the library was passed
237237 as an input to the linker.
238- - Uses the name of the library without the lib prefix on Linux and without
239- the .so/.dll suffix on Linux/Windows, respectively
238+ - Uses the name of the library without the lib prefix on Linux/macOS and
239+ without the .so/.dll/.dylib suffix on Linux/Windows/macOS , respectively
240240
241241- **PluginName **
242242
@@ -276,8 +276,8 @@ Plugin configuration file format should be as follows:::
276276:code: `GlobalPlugins ` list can specify any number of elements.
277277:code: `Options ` member is optional.
278278
279- :code: `Library ` name should be specified without the lib prefix on Linux
280- and without the .so/.dll suffix on Linux/Windows
279+ :code: `Library ` name should be specified without the lib prefix on Linux/macOS
280+ and without the .so/.dll/.dylib suffix on Linux/Windows/macOS
281281
282282:code: `ControlMemorySizePlugin ` and :code: `ControlFileSizePlugin ` are output
283283section plugins. Therefore, in the plugin configuration file, they need to be
@@ -340,6 +340,7 @@ The following steps describe how to develop a plugin:
340340 clang++ -c -I${HEXAGON_TOOLCHAIN_ROOT}/Tools/include ${SOURCE_BASENAME}.cpp -fPIC -stdlib=libc++
341341
342342 # Link the plugin library with linker wrapper library, LW.
343+ # Linux: lib${SOURCE_BASENAME}.so macOS: lib${SOURCE_BASENAME}.dylib
343344 clang++ -shared ./${SOURCE_BASENAME}.o -L${HEXAGON_TOOLCHAIN_ROOT}/Tools/lib -lLW -stdlib=libc++ -o lib${SOURCE_BASENAME}.so
344345
3453467) Define :code: `RegisterAll ` function in C linkage.
@@ -405,7 +406,9 @@ Linker performs the following operations to load, run and unload plugins.
405406
4064072) Loads all the specified plugin libraries.
407408
408- #. To find plugin libraries, :code: `LD_LIBRARY_PATH ` environment variable is used on unix environment.
409+ #. To find plugin libraries, :code: `LD_LIBRARY_PATH ` is used on Linux.
410+ On macOS, :code: `DYLD_LIBRARY_PATH ` is searched first, then
411+ :code: `LD_LIBRARY_PATH `.
409412 #. Standard method for searching dynamic libraries is used in Windows.
410413
4114143) Calls :code: `RegisterAll ` function from each plugin library. This function
0 commit comments