target_arch.patch 885 B

123456789101112131415161718192021222324
  1. diff -Nur uClibc-0.9.33.2.orig/Rules.mak uClibc-0.9.33.2/Rules.mak
  2. --- uClibc-0.9.33.2.orig/Rules.mak 2012-05-15 09:20:09.000000000 +0200
  3. +++ uClibc-0.9.33.2/Rules.mak 2013-04-19 12:52:32.000000000 +0200
  4. @@ -118,12 +118,17 @@
  5. LIBC := libc
  6. SHARED_LIBNAME := $(LIBC).so.$(ABI_VERSION)
  7. UBACKTRACE_DSO := libubacktrace.so.$(ABI_VERSION)
  8. -ifneq ($(findstring $(TARGET_ARCH) , hppa64 ia64 mips64 powerpc64 s390x sparc64 x86_64 ),)
  9. +
  10. +UCLIBC_LDSO_NAME := ld-uClibc
  11. +ARCH_NATIVE_BIT := 32
  12. +ifneq ($(findstring $(TARGET_ARCH) , hppa64 ia64 powerpc64 s390x sparc64 x86_64 ),)
  13. UCLIBC_LDSO_NAME := ld64-uClibc
  14. ARCH_NATIVE_BIT := 64
  15. else
  16. -UCLIBC_LDSO_NAME := ld-uClibc
  17. -ARCH_NATIVE_BIT := 32
  18. +ifeq ($(CONFIG_MIPS_N64_ABI),y)
  19. +UCLIBC_LDSO_NAME := ld64-uClibc
  20. +ARCH_NATIVE_BIT := 64
  21. +endif
  22. endif
  23. UCLIBC_LDSO := $(UCLIBC_LDSO_NAME).so.$(ABI_VERSION)
  24. NONSHARED_LIBNAME := uclibc_nonshared.a