diff options
| author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-08-17 15:01:22 +0000 |
|---|---|---|
| committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-08-17 15:01:22 +0000 |
| commit | f3557869630df8ff423f062b97ad98fee01377e1 (patch) | |
| tree | 3f2ba8c1a03d690706e239a1d4108db231f6aac0 /libpthread/nptl/sysdeps/unix/sysv/linux/Makefile | |
| parent | 54a7d559374ef72fa59bbe3a56d27ff5ec34d3aa (diff) | |
| download | uClibc-alpine-f3557869630df8ff423f062b97ad98fee01377e1.tar.bz2 uClibc-alpine-f3557869630df8ff423f062b97ad98fee01377e1.tar.xz | |
Rename 'fork.c' to be 'fork-nptl.c' because it ends up replacing the object 'libc/sysdeps/linux/common/fork.o' and 'fork' then appears as undefined when applications are linked against uClibc.
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/Makefile')
| -rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/Makefile b/libpthread/nptl/sysdeps/unix/sysv/linux/Makefile index e29cf113b..37ea6e05b 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/Makefile +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/Makefile @@ -52,6 +52,11 @@ CSRC-LIBC-ST += libc-lowlevellock.c CSRC-LIBP-ST += rtld-libc-lowlevellock.c endif +# +# Needed to get pthread types. +# +CFLAGS-pt-fork.c = -D_GNU_SOURCE + COBJ-LIBP-ST = $(patsubst %.c, %.o, $(CSRC-LIBP-ST)) COBJ-LIBP-SH = $(patsubst %.c, %.os, $(CSRC-LIBP-SH)) COBJ-LIBC-ST = $(patsubst %.c, %.o, $(CSRC-LIBC-ST)) @@ -69,16 +74,16 @@ endif $(AR) $(ARFLAGS) $(PTDIR)../$(LIBPTHREAD_SHARED_ARCHIVE) $(COBJ-LIBP-SH) $(COBJ-LIBP-ST): %.o : %.c - $(CC) $(CFLAGS-LIBP) -c $< -o $@ + $(CC) $(CFLAGS-$<) $(CFLAGS-LIBP) -c $< -o $@ $(COBJ-LIBP-SH): %.os : %.c - $(CC) $(CFLAGS-LIBP) -DSHARED -c $< -o $@ + $(CC) $(CFLAGS-$<) $(CFLAGS-LIBP) -DSHARED -c $< -o $@ $(COBJ-LIBC-ST): %.o : %.c - $(CC) $(CFLAGS-LIBC) -c $< -o $@ + $(CC) $(CFLAGS-$<) $(CFLAGS-LIBC) -c $< -o $@ $(COBJ-LIBC-SH): %.os : %.c - $(CC) $(CFLAGS-LIBC) -DSHARED -c $< -o $@ + $(CC) $(CFLAGS-$<) $(CFLAGS-LIBC) -DSHARED -c $< -o $@ objs-pthread-libc: $(COBJ-LIBC-ST) $(COBJ-LIBC-SH) ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y) |
