summaryrefslogtreecommitdiff
path: root/libm
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-11 21:09:54 (GMT)
committerEric Andersen <andersen@codepoet.org>2002-01-11 21:09:54 (GMT)
commitdd43462ee234a3d32e50f485d1d687bc979d2e21 (patch)
tree76f92070ccd13915a79ebcc7c15609b3545bb7b8 /libm
parenta09d13b8b6fcc06eb740317c2ca988d31ec6407f (diff)
More build system cleanups...
Diffstat (limited to 'libm')
-rw-r--r--libm/Makefile5
-rw-r--r--libm/powerpc/Makefile5
2 files changed, 4 insertions, 6 deletions
diff --git a/libm/Makefile b/libm/Makefile
index 51d7be8..fc1322c 100644
--- a/libm/Makefile
+++ b/libm/Makefile
@@ -45,8 +45,7 @@ ALL_SUBDIRS = powerpc
LIBM=libm.a
LIBM_SHARED=libm.so
LIBM_SHARED_FULLNAME=libm-$(MAJOR_VERSION).$(MINOR_VERSION).so
-TARGET_CC= $(TOPDIR)extra/gcc-uClibc/$(TARGET_ARCH)-uclibc-gcc
-TARGET_CFLAGS+=-D_IEEE_LIBM -D_ISOC99_SOURCE -D_SVID_SOURCE
+CFLAGS+=-D_IEEE_LIBM -D_ISOC99_SOURCE -D_SVID_SOURCE
ifeq ($(strip $(DO_C99_MATH)),true)
CSRC = e_acos.c e_acosh.c e_asin.c e_atan2.c e_atanh.c e_cosh.c\
@@ -108,7 +107,7 @@ ar-target: $(OBJS)
$(AR) $(ARFLAGS) $(LIBM) $(OBJS)
$(COBJS): %.o : %.c
- $(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@
+ $(CC) $(CFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
$(OBJ): Makefile
diff --git a/libm/powerpc/Makefile b/libm/powerpc/Makefile
index 5922d36..58ab7fb 100644
--- a/libm/powerpc/Makefile
+++ b/libm/powerpc/Makefile
@@ -35,8 +35,7 @@ TOPDIR=../../
include $(TOPDIR)Rules.mak
LIBM=../libm.a
-TARGET_CC= $(TOPDIR)extra/gcc-uClibc/$(TARGET_ARCH)-uclibc-gcc
-TARGET_CFLAGS+=-D_IEEE_LIBM -D_ISOC99_SOURCE -D_SVID_SOURCE
+CFLAGS+=-D_IEEE_LIBM -D_ISOC99_SOURCE -D_SVID_SOURCE
ifeq ($(strip $(DO_C99_MATH)),true)
CSRC = s_ceil.c s_floor.c s_ldexp.c s_frexp.c s_logb.c s_modf.c w_scalb.c s_copysign.c s_rint.c
@@ -59,7 +58,7 @@ ar-target: $(OBJS)
$(AR) $(ARFLAGS) $(LIBM) $(OBJS)
$(COBJS): %.o : %.c
- $(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@
+ $(CC) $(CFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o
$(OBJ): Makefile