On Thu, May 12, 2022 at 02:39:14PM +0200, Thomas Schwinge wrote:
> Hi!
> 
> Again, no change in behavior, just refactoring, making things more
> explicit, in preparation for other changes.  OK to push the attached
> "Refactor '-ldl' handling for libgomp proper and plugins"?
> 
> By the way, this might also qualify as a first preparational step to
> support dynamic loading schemes different from 'dl.so'/'dlopen'.  ;-)
> (But I'm not working on that.)

Ok.
>       libgomp/
>       * Makefile.am (libgomp_la_LIBADD): Initialize.
>       * plugin/configfrag.ac (DL_LIBS): New.
>       (PLUGIN_GCN_LIBS): Remove.
>       (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
>       * plugin/Makefrag.am (libgomp_la_LIBADD)
>       (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
>       (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
>       * Makefile.in: Regenerate.
>       * config.h.in: Likewise.
>       * configure: Likewise.
>       * testsuite/Makefile.in: Likewise.

        Jakub

Reply via email to