| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: SunOS.mk,v 1.85 2022/10/01 14:23:26 jperkin Exp $ | | 1 | # $NetBSD: SunOS.mk,v 1.86 2022/11/21 18:25:54 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 |
| @@ -73,40 +73,26 @@ _OPSYS_MISSING_FEATURES= asprintf | | | @@ -73,40 +73,26 @@ _OPSYS_MISSING_FEATURES= asprintf |
73 | | | 73 | |
74 | .if !exists(/usr/include/err.h) | | 74 | .if !exists(/usr/include/err.h) |
75 | _OPSYS_MISSING_FEATURES+= err | | 75 | _OPSYS_MISSING_FEATURES+= err |
76 | .endif | | 76 | .endif |
77 | | | 77 | |
78 | .if ${OPSYS_VERSION} < 051100 | | 78 | .if ${OPSYS_VERSION} < 051100 |
79 | _OPSYS_MISSING_FEATURES+= strnlen | | 79 | _OPSYS_MISSING_FEATURES+= strnlen |
80 | .endif | | 80 | .endif |
81 | | | 81 | |
82 | _PATCH_CAN_BACKUP= yes # native patch(1) can make backups | | 82 | _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 | | 83 | _PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix |
84 | _USE_RPATH= yes # add rpath to LDFLAGS | | 84 | _USE_RPATH= yes # add rpath to LDFLAGS |
85 | | | 85 | |
86 | # Remove flags specific to GNU ld. | | | |
87 | BUILDLINK_TRANSFORM+= rm:-Wl,--as-needed | | | |
88 | BUILDLINK_TRANSFORM+= rm:-Wl,--disable-new-dtags | | | |
89 | BUILDLINK_TRANSFORM+= rm:-Wl,--enable-new-dtags | | | |
90 | BUILDLINK_TRANSFORM+= rm:-Wl,--export-dynamic | | | |
91 | BUILDLINK_TRANSFORM+= rm:-Wl,--gc-sections | | | |
92 | BUILDLINK_TRANSFORM+= rm:-Wl,--no-as-needed | | | |
93 | BUILDLINK_TRANSFORM+= rm:-Wl,--warn-common | | | |
94 | BUILDLINK_TRANSFORM+= rm:-Wl,--warn-shared-textrel | | | |
95 | BUILDLINK_TRANSFORM+= rm:-Wl,-O1 | | | |
96 | BUILDLINK_TRANSFORM+= rm:-Wl,-O2 | | | |
97 | BUILDLINK_TRANSFORM+= rm:-Wl,-export-dynamic | | | |
98 | BUILDLINK_TRANSFORM+= rm:-export-dynamic | | | |
99 | | | | |
100 | # Convert GNU ld flags to native SunOS ld flags where possible. | | 86 | # Convert GNU ld flags to native SunOS ld flags where possible. |
101 | BUILDLINK_TRANSFORM+= opt:-Wl,--rpath:-Wl,-R | | 87 | BUILDLINK_TRANSFORM+= opt:-Wl,--rpath:-Wl,-R |
102 | | | 88 | |
103 | # Remove GCC-specific flags if using clang | | 89 | # Remove GCC-specific flags if using clang |
104 | .if ${PKGSRC_COMPILER} == "clang" | | 90 | .if ${PKGSRC_COMPILER} == "clang" |
105 | BUILDLINK_TRANSFORM+= rm:-mimpure-text | | 91 | BUILDLINK_TRANSFORM+= rm:-mimpure-text |
106 | .endif | | 92 | .endif |
107 | | | 93 | |
108 | # The native curses implementations are reasonably old and can cause lots of | | 94 | # The native curses implementations are reasonably old and can cause lots of |
109 | # issues with software which assumes newer interfaces, so it's easier to just | | 95 | # issues with software which assumes newer interfaces, so it's easier to just |
110 | # use pkgsrc curses at this point. Both curses and terminfo should be in sync | | 96 | # use pkgsrc curses at this point. Both curses and terminfo should be in sync |
111 | # otherwise it's possible to end up with conflicting buildlink transforms. | | 97 | # otherwise it's possible to end up with conflicting buildlink transforms. |
112 | # | | 98 | # |