| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: SunOS.mk,v 1.74 2017/03/08 15:26:51 jperkin Exp $ | | 1 | # $NetBSD: SunOS.mk,v 1.75 2017/05/08 17:34:15 jperkin Exp $ |
2 | # | | 2 | # |
3 | # Variable definitions for the SunOS/Solaris operating system. | | 3 | # Variable definitions for the SunOS/Solaris operating system. |
4 | | | 4 | |
5 | ECHO_N?= ${ECHO} -n | | 5 | ECHO_N?= ${ECHO} -n |
6 | IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake | | 6 | IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake |
7 | PKGLOCALEDIR?= lib | | 7 | PKGLOCALEDIR?= lib |
8 | PS?= /bin/ps | | 8 | PS?= /bin/ps |
9 | # XXX: default from defaults/mk.conf. Verify/correct for this platform | | 9 | # XXX: default from defaults/mk.conf. Verify/correct for this platform |
10 | # and remove this comment. | | 10 | # and remove this comment. |
11 | SU?= /usr/bin/su | | 11 | SU?= /usr/bin/su |
12 | TYPE?= /usr/bin/type | | 12 | TYPE?= /usr/bin/type |
13 | | | 13 | |
14 | CATMAN_SECTION_SUFFIX?= yes | | 14 | CATMAN_SECTION_SUFFIX?= yes |
| @@ -88,28 +88,31 @@ BUILDLINK_TRANSFORM+= rm:-Wl,--warn-shar | | | @@ -88,28 +88,31 @@ BUILDLINK_TRANSFORM+= rm:-Wl,--warn-shar |
88 | BUILDLINK_TRANSFORM+= rm:-Wl,-export-dynamic | | 88 | BUILDLINK_TRANSFORM+= rm:-Wl,-export-dynamic |
89 | BUILDLINK_TRANSFORM+= rm:-export-dynamic | | 89 | BUILDLINK_TRANSFORM+= rm:-export-dynamic |
90 | | | 90 | |
91 | # Convert GNU ld flags to native SunOS ld flags where possible. | | 91 | # Convert GNU ld flags to native SunOS ld flags where possible. |
92 | BUILDLINK_TRANSFORM+= opt:-Wl,--rpath:-Wl,-R | | 92 | BUILDLINK_TRANSFORM+= opt:-Wl,--rpath:-Wl,-R |
93 | | | 93 | |
94 | # Remove GCC-specific flags if using clang | | 94 | # Remove GCC-specific flags if using clang |
95 | .if ${PKGSRC_COMPILER} == "clang" | | 95 | .if ${PKGSRC_COMPILER} == "clang" |
96 | BUILDLINK_TRANSFORM+= rm:-mimpure-text | | 96 | BUILDLINK_TRANSFORM+= rm:-mimpure-text |
97 | .endif | | 97 | .endif |
98 | | | 98 | |
99 | # The native curses implementations are reasonably old and can cause lots of | | 99 | # The native curses implementations are reasonably old and can cause lots of |
100 | # issues with software which assumes newer interfaces, so it's easier to just | | 100 | # issues with software which assumes newer interfaces, so it's easier to just |
101 | # use pkgsrc curses at this point. | | 101 | # use pkgsrc curses at this point. Both curses and terminfo should be in sync |
102 | _INCOMPAT_CURSES= SunOS-*-* | | 102 | # otherwise it's possible to end up with conflicting buildlink transforms. |
| | | 103 | # |
| | | 104 | _INCOMPAT_CURSES= SunOS-*-* |
| | | 105 | _OPSYS_PREFER.terminfo?= pkgsrc |
103 | | | 106 | |
104 | # Solaris has /usr/include/iconv.h, but it's not GNU iconv, so mark it | | 107 | # Solaris has /usr/include/iconv.h, but it's not GNU iconv, so mark it |
105 | # incompatible. | | 108 | # incompatible. |
106 | _INCOMPAT_ICONV= SunOS-*-* | | 109 | _INCOMPAT_ICONV= SunOS-*-* |
107 | | | 110 | |
108 | _STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip | | 111 | _STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip |
109 | _STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip | | 112 | _STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip |
110 | | | 113 | |
111 | PKG_TOOLS_BIN?= ${LOCALBASE}/sbin | | 114 | PKG_TOOLS_BIN?= ${LOCALBASE}/sbin |
112 | | | 115 | |
113 | .if ${MACHINE_ARCH} == "x86_64" | | 116 | .if ${MACHINE_ARCH} == "x86_64" |
114 | LIBABISUFFIX= /amd64 | | 117 | LIBABISUFFIX= /amd64 |
115 | .endif | | 118 | .endif |