diff options
author | Vladimir Mezentsev <vladimir.mezentsev@oracle.com> | 2022-07-15 11:46:22 -0700 |
---|---|---|
committer | Vladimir Mezentsev <vladimir.mezentsev@oracle.com> | 2022-07-18 10:42:02 -0700 |
commit | b8283575aea5d4dbe653b3768fe329abf476e983 (patch) | |
tree | ef65dcd4cf6d06c88f39386f9e08f458676654c6 /gprofng/src | |
parent | e4d04cb30606e18f561a56cab7559ca59a15b6ec (diff) | |
download | gdb-b8283575aea5d4dbe653b3768fe329abf476e983.zip gdb-b8283575aea5d4dbe653b3768fe329abf476e983.tar.gz gdb-b8283575aea5d4dbe653b3768fe329abf476e983.tar.bz2 |
gprofng: link libgprofng.so against -lpthread
gprofng/ChangeLog
2022-07-15 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
PR gprofng/29364
* src/Makefile.am (libgprofng_la_LIBADD): Add -lpthread.
* src/Makefile.in: Rebuild.
Diffstat (limited to 'gprofng/src')
-rw-r--r-- | gprofng/src/Makefile.am | 6 | ||||
-rw-r--r-- | gprofng/src/Makefile.in | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gprofng/src/Makefile.am b/gprofng/src/Makefile.am index 2584a67..6e09315 100644 --- a/gprofng/src/Makefile.am +++ b/gprofng/src/Makefile.am @@ -127,10 +127,14 @@ EXTRA_DIST = QLParser.yy $(man_MANS) pkglib_LTLIBRARIES = $(LIBGPROFNG) libgprofng_la_SOURCES = $(CCSOURCES) $(CSOURCES) libgprofng_la_LDFLAGS = -version-info 0:0:0 + +# Pass -lpthread instead of $(PTHREAD_LIBS) due to $(PTHREAD_LIBS) being empty +# when -nostdlib is passed to libtool. +# See bug 29364 - libgprofng.so: needs to link against -pthread libgprofng_la_LIBADD = $(top_builddir)/../opcodes/libopcodes.la \ $(top_builddir)/../bfd/libbfd.la \ $(GPROFNG_LIBADD) \ - $(PTHREAD_LIBS) -ldl + -lpthread -ldl dbedir = $(SYSCONFDIR) dbe_DATA = $(srcdir)/gprofng.rc diff --git a/gprofng/src/Makefile.in b/gprofng/src/Makefile.in index 3d15496..ba7fdd6 100644 --- a/gprofng/src/Makefile.in +++ b/gprofng/src/Makefile.in @@ -160,8 +160,7 @@ am__installdirs = "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(bindir)" \ LTLIBRARIES = $(pkglib_LTLIBRARIES) am__DEPENDENCIES_1 = libgprofng_la_DEPENDENCIES = $(top_builddir)/../opcodes/libopcodes.la \ - $(top_builddir)/../bfd/libbfd.la $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) + $(top_builddir)/../bfd/libbfd.la $(am__DEPENDENCIES_1) am__objects_1 = Application.lo BaseMetric.lo BaseMetricTreeNode.lo \ CallStack.lo CatchOutOfMemory.lo ClassFile.lo Command.lo \ CompCom.lo DataObject.lo DataSpace.lo Data_window.lo \ @@ -552,10 +551,14 @@ EXTRA_DIST = QLParser.yy $(man_MANS) pkglib_LTLIBRARIES = $(LIBGPROFNG) libgprofng_la_SOURCES = $(CCSOURCES) $(CSOURCES) libgprofng_la_LDFLAGS = -version-info 0:0:0 + +# Pass -lpthread instead of $(PTHREAD_LIBS) due to $(PTHREAD_LIBS) being empty +# when -nostdlib is passed to libtool. +# See bug 29364 - libgprofng.so: needs to link against -pthread libgprofng_la_LIBADD = $(top_builddir)/../opcodes/libopcodes.la \ $(top_builddir)/../bfd/libbfd.la \ $(GPROFNG_LIBADD) \ - $(PTHREAD_LIBS) -ldl + -lpthread -ldl dbedir = $(SYSCONFDIR) dbe_DATA = $(srcdir)/gprofng.rc |