[PATCHv4] librt: Add posix_spawn support
Mike Frysinger
vapier at gentoo.org
Mon Mar 5 06:39:15 UTC 2012
On Saturday 03 March 2012 01:09:19 Ismael Luceno wrote:
> --- a/extra/Configs/Config.in
> +++ b/extra/Configs/Config.in
>
> +config UCLIBC_POSIX_SPAWN
> + bool "Enable posix_spawn functions"
> + help
> + Enable this if you need posix_spawn functionality.
> +
> + If unsure, say N.
we've already got a UCLIBC_HAS_ADVANCED_REALTIME knob to control posix_spawn
and friends
you should update the top-level Makefile.in and list spawn.h in the HEADERS_RM
variable
> --- a/librt/Makefile.in
> +++ b/librt/Makefile.in
>
> ifeq ($(UCLIBC_HAS_REALTIME),y)
> ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
> librt_CSRC := $(filter-out mq_notify.c timer_create.c timer_delete.c \
> - timer_getoverr.c timer_gettime.c timer_settime.c, \
> + timer_getoverr.c timer_gettime.c timer_settime.c \
> + $(if $(UCLIBC_POSIX_SPAWN),, \
> + spawn.c \
> + spawn_faction_addclose.c \
> + spawn_faction_adddup2.c \
> + spawn_faction_addopen.c \
> + spawn_faction_init.c), \
> $(notdir $(wildcard $(librt_DIR)/*.c)))
> librt_SSRC := $(wildcard $(librt_DIR)/*.S)
> librt_OBJ := $(patsubst %.c,$(librt_OUT)/%.o,$(librt_CSRC))
this will filter the sources for NPTL targets, but not non-NPTL targets. i've
rewritten this a bit in master, so you'll have to update it. now you'll only
need to tweak the librt_filter_SRC variable outside of the if logic.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120305/1e4bf998/attachment.asc>
More information about the uClibc
mailing list