diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-04-10 08:04:19 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-04-10 08:04:19 +0000 |
commit | dd27e84e64a06f12c1e571769e0e567470c1f51b (patch) | |
tree | 1a96e4f587d04ad64a6b11fb4022840e5a4aafd4 /libpthread | |
parent | b7738ee773c8b131ed6e15ac91ccedb1724545a3 (diff) |
Fix libpthread compile for sparc
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/linuxthreads/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
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 \ |