diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-06 14:49:17 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-06 14:49:17 +0000 |
commit | 7711a9b8e870372e19f6bea41a70baa0ea2878dd (patch) | |
tree | 25e6076580afd740b38ebb92b827c8ca0438baa9 /libpthread/linuxthreads_db/Makefile | |
parent | 0a2d7c0bb713079a668162883e5ccdacf92f4beb (diff) |
Several pthreads updates. Enable linuxthreads_db. Several fixes
related to thread local storage.
-Erik
Diffstat (limited to 'libpthread/linuxthreads_db/Makefile')
-rw-r--r-- | libpthread/linuxthreads_db/Makefile | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/libpthread/linuxthreads_db/Makefile b/libpthread/linuxthreads_db/Makefile index 4725993d2..d13b0f486 100644 --- a/libpthread/linuxthreads_db/Makefile +++ b/libpthread/linuxthreads_db/Makefile @@ -21,8 +21,12 @@ TOPDIR=../../ include $(TOPDIR)Rules.mak #Adjust the soname version to avoid namespace collisions with glibc's libpthread -PT_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL) -LIBPTHREAD=../libpthread.a +LIBTHREAD_DB:=../libthread_db.a +ifeq ($(strip $(TARGET_ARCH)),sparc) +SYSDEPS_DIR:=$(TARGET_ARCH)/sparc32 +else +SYSDEPS_DIR:=$(TARGET_ARCH) +endif # set up system dependencies include dirs (NOTE: order matters!) PTDIR = $(TOPDIR)libpthread/linuxthreads/ @@ -33,7 +37,7 @@ SYSDEPINC = -I$(PTDIR)sysdeps/unix/sysv/linux \ -I$(PTDIR)sysdeps/$(TARGET_ARCH) \ -I$(PTDIR)sysdeps \ -I$(TOPDIR)libc/sysdeps/linux/$(TARGET_ARCH) -CFLAGS += $(SYSDEPINC) -DLIBPTHREAD_SO="\"libpthread.so.$(PT_VERSION)\"" +CFLAGS += $(SYSDEPINC) -DLIBPTHREAD_SO="\"libpthread.so.$(MAJOR_VERSION)\"" CSRC=td_init.c td_log.c td_ta_clear_event.c td_ta_delete.c \ td_ta_enable_stats.c td_ta_event_addr.c td_ta_event_getmsg.c \ @@ -50,12 +54,12 @@ CSRC=td_init.c td_log.c td_ta_clear_event.c td_ta_delete.c \ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(COBJS) -all: $(OBJS) $(LIBPTHREAD) +all: $(OBJS) $(LIBTHREAD_DB) -$(LIBPTHREAD): ar-target +$(LIBTHREAD_DB): ar-target ar-target: $(OBJS) - $(AR) $(ARFLAGS) $(LIBPTHREAD) $(OBJS) + $(AR) $(ARFLAGS) $(LIBTHREAD_DB) $(OBJS) $(COBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ @@ -65,4 +69,3 @@ clean: rm -f *.[oa] *~ core - |