This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][roland/nptl] Link tst-timer against librt only when subdir is rt


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.

diff --git a/sysdeps/pthread/Makefile b/sysdeps/pthread/Makefile
index 1080dc9..af1a44d 100644
--- a/sysdeps/pthread/Makefile
+++ b/sysdeps/pthread/Makefile
@@ -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

Attachment: pgpXjGJPhzzet.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]