summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libm/Makefile.in17
1 files changed, 8 insertions, 9 deletions
diff --git a/libm/Makefile.in b/libm/Makefile.in
index eb905e06a..1a8f82710 100644
--- a/libm/Makefile.in
+++ b/libm/Makefile.in
@@ -29,20 +29,22 @@ LIBS-libm.so := $(LIBS)
libm_FULL_NAME := libm-$(VERSION).so
+libm_DIR:=$(top_srcdir)libm
+libm_OUT:=$(top_builddir)libm
# Fix builds for powerpc as there are different cores in this
# section now.`
ifeq ($(TARGET_ARCH),powerpc)
ifeq ($(CONFIG_E500),y)
-libm_ARCH_DIR:=$(top_srcdir)libm/$(TARGET_ARCH)/e500
-libm_ARCH_OUT:=$(top_builddir)libm/$(TARGET_ARCH)/e500
+libm_ARCH_DIR:=$(libm_DIR)/$(TARGET_ARCH)/e500
+libm_ARCH_OUT:=$(libm_OUT)/$(TARGET_ARCH)/e500
else
-libm_ARCH_DIR:=$(top_srcdir)libm/$(TARGET_ARCH)/classic
-libm_ARCH_OUT:=$(top_builddir)libm/$(TARGET_ARCH)/classic
+libm_ARCH_DIR:=$(libm_DIR)/$(TARGET_ARCH)/classic
+libm_ARCH_OUT:=$(libm_OUT)/$(TARGET_ARCH)/classic
endif
else
-libm_ARCH_DIR:=$(top_srcdir)libm/$(TARGET_ARCH)
-libm_ARCH_OUT:=$(top_builddir)libm/$(TARGET_ARCH)
+libm_ARCH_DIR:=$(libm_DIR)/$(TARGET_ARCH)
+libm_ARCH_OUT:=$(libm_OUT)/$(TARGET_ARCH)
endif
libm_ARCH_fpu_DIR:=$(libm_ARCH_DIR)/fpu
@@ -97,9 +99,6 @@ libm_CSRC := \
FL_MOBJ := sqrtf.o
endif
-libm_DIR := $(top_srcdir)libm
-libm_OUT := $(top_builddir)libm
-
# assume that arch specific versions are provided as single sources/objects
ifeq ($(UCLIBC_HAS_FPU),y)
ifeq ($(DO_C99_MATH),y)