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
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 \
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