All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Explicitly link libselinux against -lpthread
@ 2013-11-02 23:13 Laurent Bigonville
  2013-11-02 23:13 ` [PATCH 2/2] src/libselinux.pc.in: Move -lpthread to Libs.private Laurent Bigonville
  2013-11-04 13:09 ` [PATCH 1/2] Explicitly link libselinux against -lpthread Stephen Smalley
  0 siblings, 2 replies; 11+ messages in thread
From: Laurent Bigonville @ 2013-11-02 23:13 UTC (permalink / raw)
  To: SELinux

From: Laurent Bigonville <bigon@bigon.be>

libselinux is using pthread functions internally without explicitly
linking against it.

If the executable is itself not linked against libpthread, this could
lead to some weird ld.so assertions, see:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728529
---
 libselinux/src/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile
index 02dd829..2a79b27 100644
--- a/libselinux/src/Makefile
+++ b/libselinux/src/Makefile
@@ -114,7 +114,7 @@ $(LIBA): $(OBJS)
 	$(RANLIB) $@
 
 $(LIBSO): $(LOBJS)
-	$(CC) $(CFLAGS) -shared -o $@ $^ -lpcre -ldl $(LDFLAGS) -L$(LIBDIR) -Wl,-soname,$(LIBSO),-z,defs,-z,relro
+	$(CC) $(CFLAGS) -shared -o $@ $^ -lpcre -lpthread -ldl $(LDFLAGS) -L$(LIBDIR) -Wl,-soname,$(LIBSO),-z,defs,-z,relro
 	ln -sf $@ $(TARGET) 
 
 $(LIBPC): $(LIBPC).in ../VERSION
-- 
1.8.4.2


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-11-06 20:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-02 23:13 [PATCH 1/2] Explicitly link libselinux against -lpthread Laurent Bigonville
2013-11-02 23:13 ` [PATCH 2/2] src/libselinux.pc.in: Move -lpthread to Libs.private Laurent Bigonville
2013-11-04 13:09 ` [PATCH 1/2] Explicitly link libselinux against -lpthread Stephen Smalley
2013-11-04 13:18   ` Stephen Smalley
2013-11-04 13:59     ` Daniel J Walsh
2013-11-04 14:16       ` Laurent Bigonville
2013-11-06 15:40         ` Sven Vermeulen
2013-11-06 17:09           ` Stephen Smalley
2013-11-06 17:19             ` Laurent Bigonville
2013-11-06 17:35               ` Stephen Smalley
2013-11-06 20:00                 ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.