OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/uClibc-0.9.32.1-Fix-e500-__fe_nomask_env-use-of-__set_errno.patch
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. >From 49f58308779cb0b798f5e7bc902bbc515c1ec394 Mon Sep 17 00:00:00 2001
  17. From: Jason Woodward <jason.woodward@timesys.com>
  18. Date: Sat, 11 Jun 2011 22:00:59 -0400
  19. Subject: [PATCH] Fix e500 __fe_nomask_env use of __set_errno w/o CFLAGS-libm
  20. Since the new _LIBC guard in 96c9a8f7d00cdf6bb7968a2390b9d87da8a45e2d we need
  21. to use CFLAGS-libm (-DNOT_IN_libc -DIS_IN_libm) or we end up with linker
  22. errors like:
  23. lib/libm.a(fe_nomask.os): In function `__fe_nomask_env':
  24. fe_nomask.c:(.text+0x26): undefined reference to `__libc_errno'
  25. collect2: ld returned 1 exit status
  26. Signed-off-by: Jason Woodward <jason.woodward@timesys.com>
  27. ---
  28. libm/powerpc/e500/fpu/Makefile.arch | 2 ++
  29. 1 files changed, 2 insertions(+), 0 deletions(-)
  30. diff --git a/libm/powerpc/e500/fpu/Makefile.arch b/libm/powerpc/e500/fpu/Makefile.arch
  31. index 904561e..a64843f 100644
  32. --- a/libm/powerpc/e500/fpu/Makefile.arch
  33. +++ b/libm/powerpc/e500/fpu/Makefile.arch
  34. @@ -11,6 +11,8 @@ libm_ARCH_SRC:=$(wildcard $(libm_ARCH_fpu_DIR)/*.c)
  35. libm_ARCH_OBJ:=$(patsubst $(libm_ARCH_fpu_DIR)/%.c,$(libm_ARCH_fpu_OUT)/%.o,$(libm_ARCH_SRC))
  36. endif
  37. +CFLAGS-fe_nomask.c := $(CFLAGS-libm)
  38. +
  39. libm_ARCH_OBJS:=$(libm_ARCH_OBJ)
  40. ifeq ($(DOPIC),y)
  41. --
  42. 1.7.0.4