public inbox for binutils-cvs@sourceware.org help / color / mirror / Atom feed
From: Vladimir Mezentsev <vmezents@sourceware.org> To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb/binutils-2_39-branch] gprofng: link libgprofng.so against -lpthread Date: Mon, 18 Jul 2022 17:37:14 +0000 (GMT) [thread overview] Message-ID: <20220718173714.4D60C3852742@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=05cd51e79cfb497689df67f537c3ba4d93c687fb commit 05cd51e79cfb497689df67f537c3ba4d93c687fb Author: Vladimir Mezentsev <vladimir.mezentsev@oracle.com> Date: Fri Jul 15 11:46:22 2022 -0700 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. Diff: --- gprofng/src/Makefile.am | 6 +++++- 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 2584a67dc55..6e0931524e4 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 3d15496147e..ba7fdd6e8ad 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
reply other threads:[~2022-07-18 17:37 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220718173714.4D60C3852742@sourceware.org \ --to=vmezents@sourceware.org \ --cc=bfd-cvs@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).