summaryrefslogtreecommitdiff
path: root/ports/sysdeps/tile/preconfigure
diff options
context:
space:
mode:
Diffstat (limited to 'ports/sysdeps/tile/preconfigure')
-rw-r--r--ports/sysdeps/tile/preconfigure17
1 files changed, 17 insertions, 0 deletions
diff --git a/ports/sysdeps/tile/preconfigure b/ports/sysdeps/tile/preconfigure
new file mode 100644
index 0000000000..9dba5b1040
--- /dev/null
+++ b/ports/sysdeps/tile/preconfigure
@@ -0,0 +1,17 @@
+# This is a -*- sh -*-
+case "$machine" in
+ tilepro)
+ base_machine=tile machine=tile/tilepro ;;
+ tilegx)
+ base_machine=tile
+ if $CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | grep -q __LP64__; then
+ machine=tile/tilegx/tilegx64
+ else
+ machine=tile/tilegx/tilegx32
+ fi ;;
+esac
+case "$machine" in
+ tile*)
+ libc_commonpagesize=0x10000
+ libc_relro_required=yes ;;
+esac