| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: NetBSD.mk,v 1.30 2008/04/03 14:07:51 joerg Exp $ | | 1 | # $NetBSD: NetBSD.mk,v 1.31 2008/08/10 17:40:00 joerg 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 |
| @@ -77,27 +77,27 @@ _OPSYS_SYSTEM_RPATH?= /usr/lib | | | @@ -77,27 +77,27 @@ _OPSYS_SYSTEM_RPATH?= /usr/lib |
77 | | | 77 | |
78 | .if exists(/usr/include/netinet6) | | 78 | .if exists(/usr/include/netinet6) |
79 | _OPSYS_HAS_INET6= yes # IPv6 is standard | | 79 | _OPSYS_HAS_INET6= yes # IPv6 is standard |
80 | .else | | 80 | .else |
81 | _OPSYS_HAS_INET6= no # IPv6 is not standard | | 81 | _OPSYS_HAS_INET6= no # IPv6 is not standard |
82 | .endif | | 82 | .endif |
83 | _OPSYS_HAS_JAVA= no # Java is not standard | | 83 | _OPSYS_HAS_JAVA= no # Java is not standard |
84 | _OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages | | 84 | _OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages |
85 | _OPSYS_HAS_OSSAUDIO= yes # libossaudio is available | | 85 | _OPSYS_HAS_OSSAUDIO= yes # libossaudio is available |
86 | _OPSYS_PERL_REQD= # no base version of perl required | | 86 | _OPSYS_PERL_REQD= # no base version of perl required |
87 | _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads | | 87 | _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads |
88 | _OPSYS_SHLIB_TYPE= ELF/a.out # shared lib type | | 88 | _OPSYS_SHLIB_TYPE= ELF/a.out # shared lib type |
89 | _PATCH_CAN_BACKUP= yes # native patch(1) can make backups | | 89 | _PATCH_CAN_BACKUP= yes # native patch(1) can make backups |
90 | _PATCH_BACKUP_ARG?= -V simple -b # switch to patch(1) for backup suffix | | 90 | _PATCH_BACKUP_ARG?= -V simple --suffix # switch to patch(1) for backup suffix |
91 | _USE_RPATH= yes # add rpath to LDFLAGS | | 91 | _USE_RPATH= yes # add rpath to LDFLAGS |
92 | | | 92 | |
93 | # flags passed to the linker to extract all symbols from static archives. | | 93 | # flags passed to the linker to extract all symbols from static archives. |
94 | # this is GNU ld. | | 94 | # this is GNU ld. |
95 | _OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive | | 95 | _OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive |
96 | _OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive | | 96 | _OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive |
97 | | | 97 | |
98 | # for programs which use dlopen() | | 98 | # for programs which use dlopen() |
99 | # not necessary since 1.6 (shared libs are linked against libgcc_pic) | | 99 | # not necessary since 1.6 (shared libs are linked against libgcc_pic) |
100 | .if !empty(OS_VERSION:M1.5*) | | 100 | .if !empty(OS_VERSION:M1.5*) |
101 | LINK_ALL_LIBGCC_HACK= -Wl,--whole-archive -lgcc -Wl,--no-whole-archive | | 101 | LINK_ALL_LIBGCC_HACK= -Wl,--whole-archive -lgcc -Wl,--no-whole-archive |
102 | .endif | | 102 | .endif |
103 | | | 103 | |