summaryrefslogtreecommitdiff
path: root/libc/ports/sysdeps/powerpc/powerpc32/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/ports/sysdeps/powerpc/powerpc32/Makefile')
-rw-r--r--libc/ports/sysdeps/powerpc/powerpc32/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/ports/sysdeps/powerpc/powerpc32/Makefile b/libc/ports/sysdeps/powerpc/powerpc32/Makefile
new file mode 100644
index 000000000..3d235deeb
--- /dev/null
+++ b/libc/ports/sysdeps/powerpc/powerpc32/Makefile
@@ -0,0 +1,8 @@
+# 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