From dd27e84e64a06f12c1e571769e0e567470c1f51b Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 10 Apr 2002 08:04:19 +0000 Subject: Fix libpthread compile for sparc --- libpthread/linuxthreads/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libpthread/linuxthreads/Makefile') diff --git a/libpthread/linuxthreads/Makefile b/libpthread/linuxthreads/Makefile index 44ec91852..0381a2c53 100644 --- a/libpthread/linuxthreads/Makefile +++ b/libpthread/linuxthreads/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) -LIBPTHREAD=../libpthread.a +LIBPTHREAD:=../libpthread.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=attr.c cancel.c condvar.c errno.c events.c join.c lockfile.c manager.c \ mutex.c oldsemaphore.c pt-machine.c ptfork.c pthread.c \ -- cgit v1.2.3