aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/powerpc32/Makefile
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-10-04 16:02:33 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-10-04 16:02:33 +0000
commit29d73d867e1df54d703542cf7d076c5620dc2fb7 (patch)
treef6f0dd2a285848ae56b9bedaac2d817818bc674f /sysdeps/powerpc/powerpc32/Makefile
parente246b347599a402119c5cb6726d7853cb6307f0f (diff)
downloadglibc-29d73d867e1df54d703542cf7d076c5620dc2fb7.zip
glibc-29d73d867e1df54d703542cf7d076c5620dc2fb7.tar.gz
glibc-29d73d867e1df54d703542cf7d076c5620dc2fb7.tar.bz2
Move powerpc ports pieces to libc.
Diffstat (limited to 'sysdeps/powerpc/powerpc32/Makefile')
-rw-r--r--sysdeps/powerpc/powerpc32/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc32/Makefile b/sysdeps/powerpc/powerpc32/Makefile
index 3fdb4b4..cf620c8 100644
--- a/sysdeps/powerpc/powerpc32/Makefile
+++ b/sysdeps/powerpc/powerpc32/Makefile
@@ -1,5 +1,14 @@
# Powerpc32 specific build options.
+# Some Powerpc32 variants assume soft-fp is the default even though there is
+# an fp variant so provide -mhard-float if --with-fp is explicitly passed.
+
+ifeq ($(with-fp),yes)
++cflags += -mhard-float
+ASFLAGS += -mhard-float
+sysdep-LDFLAGS += -mhard-float
+endif
+
ifeq ($(subdir),gmon)
sysdep_routines += ppc-mcount compat-ppc-mcount
static-only-routines += ppc-mcount