[roland/nptl] Link tst-timer against librt only when subdir is rt
Commit Message
Hi Roland,
I've started the build for roland/nptl in rawhide. Among the changes
I had to make for rtkaio, there's a change that is probably relevant
upstream, which is to link tst-timer against librt only when the
subdir is rt. This check was in place earlier, but was removed during
the move. OK to put it back?
Siddhesh
* sysdeps/pthread/Makefile: Link tst-timer against librt only
when the subdir is rt.
Comments
That's certainly right, it was an unintentional change, and I've put it in
now. But I'm confused as to how that dependency hurt anything in other
subdirs where nothing wants to build tst-timer.
Thanks,
Roland
On Thu, Jul 03, 2014 at 06:53:39PM -0700, Roland McGrath wrote:
> That's certainly right, it was an unintentional change, and I've put it in
> now. But I'm confused as to how that dependency hurt anything in other
> subdirs where nothing wants to build tst-timer.
The rtkaio patch in Fedora as the tst-timer test and it doesn't want
to be linked to librt.so.
Siddhesh
@@ -16,8 +16,10 @@
# License along with the GNU C Library; if not, see
# <http://www.gnu.org/licenses/>.
+ifeq ($(subdir),rt)
ifeq (yes,$(build-shared))
$(objpfx)tst-timer: $(objpfx)librt.so $(shared-thread-library)
else
$(objpfx)tst-timer: $(objpfx)librt.a $(static-thread-library)
endif
+endif