]> gcc.gnu.org Git - gcc.git/commit
Refactor '-ldl' handling for libgomp proper and plugins
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 5 May 2022 21:01:36 +0000 (23:01 +0200)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 28 Jun 2022 20:55:30 +0000 (13:55 -0700)
commit6468241ffe19f698a8d456c8cd6f908b0cbde0ef
treedeaf547ff29249bdd2389bfc1a0270b1ea37d828
parentd2a0dc627197555d769bb590b891658c36301e0b
Refactor '-ldl' handling for libgomp proper and plugins

Instead of implicit global 'LIBS="-ldl $LIBS"' via 'AC_CHECK_LIB', make
'-ldl' explicit for libgomp proper, and clean up 'PLUGIN_GCN_LIBS',
'PLUGIN_NVPTX_LIBS' accordingly.

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.

(cherry picked from commit dcc266796a6afa18eeba1edde81f9eb78e6c83ce)
libgomp/ChangeLog.omp
libgomp/Makefile.am
libgomp/Makefile.in
libgomp/config.h.in
libgomp/configure
libgomp/plugin/Makefrag.am
libgomp/plugin/configfrag.ac
libgomp/testsuite/Makefile.in
This page took 0.059991 seconds and 6 git commands to generate.