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