| @@ -1,40 +1,39 @@ | | | @@ -1,40 +1,39 @@ |
1 | # $NetBSD: Linux.mk,v 1.56 2013/07/23 13:01:05 ryoon Exp $ | | 1 | # $NetBSD: Linux.mk,v 1.57 2014/02/19 17:20:23 jperkin Exp $ |
2 | # | | 2 | # |
3 | # Variable definitions for the Linux operating system. | | 3 | # Variable definitions for the Linux operating system. |
4 | | | 4 | |
5 | ECHO_N?= ${ECHO} -n | | 5 | ECHO_N?= ${ECHO} -n |
6 | .if defined(X11_TYPE) && ${X11_TYPE} == "native" | | 6 | .if defined(X11_TYPE) && ${X11_TYPE} == "native" |
7 | IMAKE_MAKE?= ${GMAKE} # program which gets invoked by imake | | 7 | IMAKE_MAKE?= ${GMAKE} # program which gets invoked by imake |
8 | IMAKE_TOOLS= gmake # extra tools required when we use imake | | 8 | IMAKE_TOOLS= gmake # extra tools required when we use imake |
9 | .endif | | 9 | .endif |
10 | IMAKEOPTS+= -DBuildHtmlManPages=NO | | 10 | IMAKEOPTS+= -DBuildHtmlManPages=NO |
11 | PKGLOCALEDIR?= share | | 11 | PKGLOCALEDIR?= share |
12 | PS?= /bin/ps | | 12 | PS?= /bin/ps |
13 | # XXX: default from defaults/mk.conf. Verify/correct for this platform | | 13 | # XXX: default from defaults/mk.conf. Verify/correct for this platform |
14 | # and remove this comment. | | 14 | # and remove this comment. |
15 | .if exists(/usr/bin/su) | | 15 | .if exists(/usr/bin/su) |
16 | SU?= /usr/bin/su | | 16 | SU?= /usr/bin/su |
17 | .else | | 17 | .else |
18 | SU?= /bin/su | | 18 | SU?= /bin/su |
19 | .endif | | 19 | .endif |
20 | TYPE?= type # Shell builtin | | 20 | TYPE?= type # Shell builtin |
21 | | | 21 | |
22 | CPP_PRECOMP_FLAGS?= # unset | | 22 | CPP_PRECOMP_FLAGS?= # unset |
23 | DEF_UMASK?= 022 | | 23 | DEF_UMASK?= 022 |
24 | DEFAULT_SERIAL_DEVICE?= /dev/null | | 24 | DEFAULT_SERIAL_DEVICE?= /dev/null |
25 | EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table | | 25 | EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table |
26 | GROUPADD?= /usr/sbin/groupadd | | 26 | GROUPADD?= /usr/sbin/groupadd |
27 | LIBC_BUILTINS= iconv getopt sysexits gettext | | | |
28 | MOTIF_TYPE_DEFAULT?= motif # default 2.0 compatible libs type | | 27 | MOTIF_TYPE_DEFAULT?= motif # default 2.0 compatible libs type |
29 | .if exists(/etc/ssdlinux_version) | | 28 | .if exists(/etc/ssdlinux_version) |
30 | NOLOGIN?= /sbin/nologin | | 29 | NOLOGIN?= /sbin/nologin |
31 | .else | | 30 | .else |
32 | NOLOGIN?= /bin/false | | 31 | NOLOGIN?= /bin/false |
33 | .endif | | 32 | .endif |
34 | PKG_TOOLS_BIN?= ${LOCALBASE}/sbin | | 33 | PKG_TOOLS_BIN?= ${LOCALBASE}/sbin |
35 | ROOT_CMD?= ${SU} - root -c | | 34 | ROOT_CMD?= ${SU} - root -c |
36 | .if exists(/etc/ssdlinux_version) | | 35 | .if exists(/etc/ssdlinux_version) |
37 | ROOT_GROUP?= wheel | | 36 | ROOT_GROUP?= wheel |
38 | .else | | 37 | .else |
39 | ROOT_GROUP?= root | | 38 | ROOT_GROUP?= root |
40 | .endif | | 39 | .endif |
| @@ -58,26 +57,32 @@ _OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /u | | | @@ -58,26 +57,32 @@ _OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /u |
58 | _OPSYS_SYSTEM_RPATH= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX}:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu | | 57 | _OPSYS_SYSTEM_RPATH= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX}:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu |
59 | _OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX} /lib/i386-linux-gnu /usr/lib/i386-linux-gnu | | 58 | _OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX} /lib/i386-linux-gnu /usr/lib/i386-linux-gnu |
60 | .endif | | 59 | .endif |
61 | .if !empty(MACHINE_ARCH:Marm*) | | 60 | .if !empty(MACHINE_ARCH:Marm*) |
62 | _OPSYS_SYSTEM_RPATH= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX}:/lib/arm-linux-gnueabi:/usr/lib/arm-linux-gnueabi | | 61 | _OPSYS_SYSTEM_RPATH= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX}:/lib/arm-linux-gnueabi:/usr/lib/arm-linux-gnueabi |
63 | _OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX} /lib/arm-linux-gnueabi /usr/lib/arm-linux-gnueabi | | 62 | _OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX} /lib/arm-linux-gnueabi /usr/lib/arm-linux-gnueabi |
64 | .endif | | 63 | .endif |
65 | .else | | 64 | .else |
66 | _OPSYS_SYSTEM_RPATH= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX} | | 65 | _OPSYS_SYSTEM_RPATH= /lib${LIBABISUFFIX}:/usr/lib${LIBABISUFFIX} |
67 | _OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX} | | 66 | _OPSYS_LIB_DIRS?= /lib${LIBABISUFFIX} /usr/lib${LIBABISUFFIX} |
68 | .endif | | 67 | .endif |
69 | _OPSYS_INCLUDE_DIRS?= /usr/include | | 68 | _OPSYS_INCLUDE_DIRS?= /usr/include |
70 | | | 69 | |
| | | 70 | # These are libc builtins |
| | | 71 | _OPSYS_PREFER.getopt?= native |
| | | 72 | _OPSYS_PREFER.gettext?= native |
| | | 73 | _OPSYS_PREFER.iconv?= native |
| | | 74 | _OPSYS_PREFER.sysexits?= native |
| | | 75 | |
71 | .if exists(/usr/include/netinet6) || exists(/usr/include/linux/in6.h) | | 76 | .if exists(/usr/include/netinet6) || exists(/usr/include/linux/in6.h) |
72 | _OPSYS_HAS_INET6= yes # IPv6 is standard | | 77 | _OPSYS_HAS_INET6= yes # IPv6 is standard |
73 | .else | | 78 | .else |
74 | _OPSYS_HAS_INET6= no # IPv6 is not standard | | 79 | _OPSYS_HAS_INET6= no # IPv6 is not standard |
75 | .endif | | 80 | .endif |
76 | _OPSYS_HAS_JAVA= no # Java is not standard | | 81 | _OPSYS_HAS_JAVA= no # Java is not standard |
77 | _OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages | | 82 | _OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages |
78 | _OPSYS_HAS_OSSAUDIO= no # libossaudio is unavailable | | 83 | _OPSYS_HAS_OSSAUDIO= no # libossaudio is unavailable |
79 | _OPSYS_PERL_REQD= # no base version of perl required | | 84 | _OPSYS_PERL_REQD= # no base version of perl required |
80 | _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads | | 85 | _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads |
81 | _OPSYS_SHLIB_TYPE= ELF # shared lib type | | 86 | _OPSYS_SHLIB_TYPE= ELF # shared lib type |
82 | _PATCH_CAN_BACKUP= yes # native patch(1) can make backups | | 87 | _PATCH_CAN_BACKUP= yes # native patch(1) can make backups |
83 | _PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix | | 88 | _PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix |