Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+15 -27
View File
@@ -1,22 +1,28 @@
$NetBSD: patch-ad,v 1.18 2015/07/06 09:46:36 martin Exp $
$NetBSD: patch-ad,v 1.20 2016/08/16 23:53:25 ryoon Exp $
*BSD and qnx are identified as linux.
Add another SDK path on Mac OS X.
All sparc cpus can not do unaligned access.
Detect NetBSD ARMv7 hardfloat toolchain.
--- build/make/configure.sh.orig 2015-04-03 18:49:19.000000000 +0000
--- build/make/configure.sh.orig 2016-07-21 01:15:41.000000000 +0000
+++ build/make/configure.sh
@@ -626,7 +626,7 @@ process_common_toolchain() {
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/pkg/bin/bash
##
## configure.sh
##
@@ -683,7 +683,7 @@ process_common_toolchain() {
armv6*)
tgt_isa=armv6
;;
- armv7*-hardfloat*)
+ armv7*-hardfloat*|armv7*-netbsd*-*hf)
- armv7*-hardfloat* | armv7*-gnueabihf | arm-*-gnueabihf)
+ armv7*-hardfloat* | armv7*-gnueabihf | arm-*-gnueabihf | armv7*-netbsd*-*hf)
tgt_isa=armv7
float_abi=hard
;;
@@ -688,7 +688,7 @@ process_common_toolchain() {
@@ -735,7 +735,7 @@ process_common_toolchain() {
[ -z "$tgt_isa" ] && tgt_isa=x86
tgt_os=win32
;;
@@ -25,7 +31,7 @@ Detect NetBSD ARMv7 hardfloat toolchain.
tgt_os=linux
;;
*solaris2.10)
@@ -731,6 +731,9 @@ process_common_toolchain() {
@@ -778,6 +778,9 @@ process_common_toolchain() {
mips*)
enable_feature mips
;;
@@ -35,25 +41,7 @@ Detect NetBSD ARMv7 hardfloat toolchain.
esac
# PIC is probably what we want when building shared libs
@@ -831,7 +834,7 @@ process_common_toolchain() {
case ${tgt_cc} in
gcc)
- CROSS=${CROSS:-arm-none-linux-gnueabi-}
+# CROSS=${CROSS:-arm-none-linux-gnueabi-}
link_with_cc=gcc
setup_gnu_toolchain
arch_int=${tgt_isa##armv}
@@ -1041,8 +1044,6 @@ EOF
check_add_cflags -mips32r2 -mdspr2
disable_feature fast_unaligned
fi
- check_add_cflags -march=${tgt_isa}
- check_add_asflags -march=${tgt_isa}
check_add_asflags -KPIC
;;
ppc*)
@@ -1280,7 +1281,7 @@ EOF
@@ -1415,7 +1418,7 @@ EOF
check_cc <<EOF
unsigned int e = 'O'<<24 | '2'<<16 | 'B'<<8 | 'E';
EOF
@@ -62,7 +50,7 @@ Detect NetBSD ARMv7 hardfloat toolchain.
grep '4f *32 *42 *45' >/dev/null 2>&1 && enable_feature big_endian
# Try to find which inline keywords are supported
@@ -1296,11 +1297,33 @@ EOF
@@ -1431,11 +1434,33 @@ EOF
*-android-gcc)
;;
*)