|
@@ -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 \
|