* [PATCH][user-cr]: Fix typo in -lpthread
@ 2009-07-22 20:28 Sukadev Bhattiprolu
[not found] ` <20090722202837.GA18639-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Sukadev Bhattiprolu @ 2009-07-22 20:28 UTC (permalink / raw)
To: Oren Laadan; +Cc: Containers
From 55cb828036ff604fc9cdf686b51afb35247c8f57 Mon Sep 17 00:00:00 2001
From: Sukadev Bhattiprolu <suka@suka.(none)>
Date: Wed, 22 Jul 2009 13:22:38 -0700
Subject: [PATCH] Fix typo in -lpthread
Signed-off-by: Sukadev Bhattiprolu <sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 53e3a46..3dbc63d 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ all: $(PROGS)
ckptinfo: ckptinfo_types.o
-mktree: CFLAGS += -D__REENTRANT -pthreads
+mktree: CFLAGS += -D__REENTRANT -lpthread
ckptinfo_types.o: ckptinfo_types.c
@echo $(CC) -c $(CFLAGS) $<
--
1.6.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <20090722202837.GA18639-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH][user-cr]: Fix typo in -lpthread [not found] ` <20090722202837.GA18639-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> @ 2009-07-23 0:58 ` Oren Laadan [not found] ` <4A67B5BA.2010609-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Oren Laadan @ 2009-07-23 0:58 UTC (permalink / raw) To: Sukadev Bhattiprolu; +Cc: Containers Sukadev Bhattiprolu wrote: > From 55cb828036ff604fc9cdf686b51afb35247c8f57 Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu <suka@suka.(none)> > Date: Wed, 22 Jul 2009 13:22:38 -0700 > Subject: [PATCH] Fix typo in -lpthread > > Signed-off-by: Sukadev Bhattiprolu <sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> > --- > Makefile | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/Makefile b/Makefile > index 53e3a46..3dbc63d 100644 > --- a/Makefile > +++ b/Makefile > @@ -44,7 +44,7 @@ all: $(PROGS) > > ckptinfo: ckptinfo_types.o > > -mktree: CFLAGS += -D__REENTRANT -pthreads > +mktree: CFLAGS += -D__REENTRANT -lpthread Hmmm .. I actually meant '-pthread' which is a gcc option. I thought it is better to use it than '-lpthread' directly. For instance, see: http://stackoverflow.com/questions/875789/gcc-do-i-need-dreentrant-with-pthreads (seems like '-pthreads' is a synonym, at least on x86). Does it break on your system ? Oren. > > ckptinfo_types.o: ckptinfo_types.c > @echo $(CC) -c $(CFLAGS) $< ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <4A67B5BA.2010609-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH][user-cr]: Fix typo in -lpthread [not found] ` <4A67B5BA.2010609-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org> @ 2009-07-23 1:17 ` Sukadev Bhattiprolu 0 siblings, 0 replies; 3+ messages in thread From: Sukadev Bhattiprolu @ 2009-07-23 1:17 UTC (permalink / raw) To: Oren Laadan; +Cc: Containers Oren Laadan [orenl-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org] wrote: | > -mktree: CFLAGS += -D__REENTRANT -pthreads | > +mktree: CFLAGS += -D__REENTRANT -lpthread | | Hmmm .. I actually meant '-pthread' which is a gcc option. Ok. I get "unrecognized option '-pthreads'" on x86 for following gcc versions - gcc (Ubuntu 4.3.3-5ubuntu4) - gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42) But '-pthread' works. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-07-23 1:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-22 20:28 [PATCH][user-cr]: Fix typo in -lpthread Sukadev Bhattiprolu
[not found] ` <20090722202837.GA18639-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-07-23 0:58 ` Oren Laadan
[not found] ` <4A67B5BA.2010609-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-07-23 1:17 ` Sukadev Bhattiprolu
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.