| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: NetBSD.mk,v 1.52 2017/07/09 14:30:07 khorben Exp $ | | 1 | # $NetBSD: NetBSD.mk,v 1.53 2017/07/24 08:19:08 maya Exp $ |
2 | # | | 2 | # |
3 | # Variable definitions for the NetBSD operating system. | | 3 | # Variable definitions for the NetBSD operating system. |
4 | | | 4 | |
5 | # Needed for 1.6.1 and earlier due to rpcgen bugs and paths | | 5 | # Needed for 1.6.1 and earlier due to rpcgen bugs and paths |
6 | .if defined(CPP) && ${CPP} == "cpp" | | 6 | .if defined(CPP) && ${CPP} == "cpp" |
7 | CPP= /usr/bin/cpp | | 7 | CPP= /usr/bin/cpp |
8 | .endif | | 8 | .endif |
9 | ECHO_N?= ${ECHO} -n | | 9 | ECHO_N?= ${ECHO} -n |
10 | IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake | | 10 | IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake |
11 | PKGLOCALEDIR?= share | | 11 | PKGLOCALEDIR?= share |
12 | PS?= /bin/ps | | 12 | PS?= /bin/ps |
13 | SU?= /usr/bin/su | | 13 | SU?= /usr/bin/su |
14 | TYPE?= type # Shell builtin | | 14 | TYPE?= type # Shell builtin |
| @@ -108,33 +108,30 @@ SERIAL_DEVICES?= /dev/tty00 \ | | | @@ -108,33 +108,30 @@ SERIAL_DEVICES?= /dev/tty00 \ |
108 | .elif (${MACHINE_ARCH} == mipsel) | | 108 | .elif (${MACHINE_ARCH} == mipsel) |
109 | DEFAULT_SERIAL_DEVICE?= /dev/ttyC0 | | 109 | DEFAULT_SERIAL_DEVICE?= /dev/ttyC0 |
110 | SERIAL_DEVICES?= /dev/ttyC0 \ | | 110 | SERIAL_DEVICES?= /dev/ttyC0 \ |
111 | /dev/ttyC1 | | 111 | /dev/ttyC1 |
112 | .elif (${MACHINE_ARCH} == "sparc") | | 112 | .elif (${MACHINE_ARCH} == "sparc") |
113 | DEFAULT_SERIAL_DEVICE?= /dev/ttya | | 113 | DEFAULT_SERIAL_DEVICE?= /dev/ttya |
114 | SERIAL_DEVICES?= /dev/ttya \ | | 114 | SERIAL_DEVICES?= /dev/ttya \ |
115 | /dev/ttyb | | 115 | /dev/ttyb |
116 | .else | | 116 | .else |
117 | DEFAULT_SERIAL_DEVICE?= /dev/null | | 117 | DEFAULT_SERIAL_DEVICE?= /dev/null |
118 | SERIAL_DEVICES?= /dev/null | | 118 | SERIAL_DEVICES?= /dev/null |
119 | .endif | | 119 | .endif |
120 | | | 120 | |
121 | # Add -mieee to CFLAGS and FFLAGS for NetBSD->=1.5V-alpha | | 121 | .if (${MACHINE_ARCH} == alpha) |
122 | .for __tmp__ in 1.5[V-Z] 1.5[A-Z][A-Z]* 1.[6-9]* [2-9].* | | | |
123 | . if ${MACHINE_PLATFORM:MNetBSD-${__tmp__}-alpha} != "" | | | |
124 | CFLAGS+= -mieee | | 122 | CFLAGS+= -mieee |
125 | FFLAGS+= -mieee | | 123 | FFLAGS+= -mieee |
126 | . endif # MACHINE_PLATFORM | | 124 | .endif |
127 | .endfor # __tmp__ | | | |
128 | | | 125 | |
129 | # check for kqueue(2) support, added in NetBSD-1.6J | | 126 | # check for kqueue(2) support, added in NetBSD-1.6J |
130 | .if exists(/usr/include/sys/event.h) | | 127 | .if exists(/usr/include/sys/event.h) |
131 | PKG_HAVE_KQUEUE= # defined | | 128 | PKG_HAVE_KQUEUE= # defined |
132 | .endif | | 129 | .endif |
133 | | | 130 | |
134 | # Register support for FORTIFY (with GCC) | | 131 | # Register support for FORTIFY (with GCC) |
135 | _OPSYS_SUPPORTS_FORTIFY=yes | | 132 | _OPSYS_SUPPORTS_FORTIFY=yes |
136 | | | 133 | |
137 | # Register support for PIE on supported architectures (with GCC) | | 134 | # Register support for PIE on supported architectures (with GCC) |
138 | .if (${MACHINE_ARCH} == "i386") || \ | | 135 | .if (${MACHINE_ARCH} == "i386") || \ |
139 | (${MACHINE_ARCH} == "x86_64") | | 136 | (${MACHINE_ARCH} == "x86_64") |
140 | _OPSYS_SUPPORTS_MKPIE= yes | | 137 | _OPSYS_SUPPORTS_MKPIE= yes |