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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc