From mboxrd@z Thu Jan 1 00:00:00 1970 From: thomas.petazzoni@free-electrons.com (Thomas Petazzoni) Date: Thu, 28 Nov 2013 10:30:24 +0100 Subject: [lttng-dev] [PATCH liburcu 2/5] Dont link pthread on Android In-Reply-To: <1385567313-8138-2-git-send-email-charlesbriere.flatzo@gmail.com> References: <1385567313-8138-1-git-send-email-charlesbriere.flatzo@gmail.com> <1385567313-8138-2-git-send-email-charlesbriere.flatzo@gmail.com> Message-ID: <20131128103024.3341ccc8@skate> Dear Charles Briere, On Wed, 27 Nov 2013 07:48:30 -0800, Charles Briere wrote: > #Add the -version-info directly here since we are only building > # library that use the version-info > -AM_LDFLAGS=-lpthread -version-info $(URCU_LIBRARY_VERSION) > +AM_LDFLAGS=-version-info $(URCU_LIBRARY_VERSION) > +if !TARGET_IS_ANDROID > +AM_LDFLAGS += -lpthread > +endif Instead of making that conditional on Android, wouldn't it make more sense to make it conditional on whether linking with pthread is necessary or not? I can at least think of one other C library than Bionic that has everything in libc instead of things split in several libraries: the Musl C library (http://www.musl-libc.org). Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com