Fossil SCM
Small Makefile patch for SunOS received from Claes Nästén.
Commit
3bff7b92d6d152daaaa587c2b690b60fd683da4ad281578577a91c3968ea1bf2
Parent
738404347c68452…
2 files changed
+1
-1
+3
+1
-1
| --- Makefile.classic | ||
| +++ Makefile.classic | ||
| @@ -95,11 +95,11 @@ | ||
| 95 | 95 | # |
| 96 | 96 | # Automatic platform-specific options. |
| 97 | 97 | HOST_OS_CMD = uname -s |
| 98 | 98 | HOST_OS = $(HOST_OS_CMD:sh) |
| 99 | 99 | |
| 100 | -LIB.SunOS= -lsocket -lnsl | |
| 100 | +LIB.SunOS= -lsocket -lnsl -lrt | |
| 101 | 101 | LIB += $(LIB.$(HOST_OS)) |
| 102 | 102 | |
| 103 | 103 | TCC.DragonFly += -DUSE_PREAD |
| 104 | 104 | TCC.FreeBSD += -DUSE_PREAD |
| 105 | 105 | TCC.NetBSD += -DUSE_PREAD |
| 106 | 106 |
| --- Makefile.classic | |
| +++ Makefile.classic | |
| @@ -95,11 +95,11 @@ | |
| 95 | # |
| 96 | # Automatic platform-specific options. |
| 97 | HOST_OS_CMD = uname -s |
| 98 | HOST_OS = $(HOST_OS_CMD:sh) |
| 99 | |
| 100 | LIB.SunOS= -lsocket -lnsl |
| 101 | LIB += $(LIB.$(HOST_OS)) |
| 102 | |
| 103 | TCC.DragonFly += -DUSE_PREAD |
| 104 | TCC.FreeBSD += -DUSE_PREAD |
| 105 | TCC.NetBSD += -DUSE_PREAD |
| 106 |
| --- Makefile.classic | |
| +++ Makefile.classic | |
| @@ -95,11 +95,11 @@ | |
| 95 | # |
| 96 | # Automatic platform-specific options. |
| 97 | HOST_OS_CMD = uname -s |
| 98 | HOST_OS = $(HOST_OS_CMD:sh) |
| 99 | |
| 100 | LIB.SunOS= -lsocket -lnsl -lrt |
| 101 | LIB += $(LIB.$(HOST_OS)) |
| 102 | |
| 103 | TCC.DragonFly += -DUSE_PREAD |
| 104 | TCC.FreeBSD += -DUSE_PREAD |
| 105 | TCC.NetBSD += -DUSE_PREAD |
| 106 |
M
auto.def
+3
| --- auto.def | ||
| +++ auto.def | ||
| @@ -717,10 +717,13 @@ | ||
| 717 | 717 | # Last resort, may be Windows |
| 718 | 718 | if {[is_mingw]} { |
| 719 | 719 | define-append LIBS -lwsock32 |
| 720 | 720 | } |
| 721 | 721 | } |
| 722 | + | |
| 723 | +# Some systems (ex: SunOS) require -lrt in order to use nanosleep | |
| 724 | +cc-check-function-in-lib nanosleep rt | |
| 722 | 725 | |
| 723 | 726 | # The SMTP module requires special libraries and headers for MX DNS |
| 724 | 727 | # record lookups and such. |
| 725 | 728 | cc-check-includes arpa/nameser.h |
| 726 | 729 | cc-include-needs bind/resolv.h netinet/in.h |
| 727 | 730 |
| --- auto.def | |
| +++ auto.def | |
| @@ -717,10 +717,13 @@ | |
| 717 | # Last resort, may be Windows |
| 718 | if {[is_mingw]} { |
| 719 | define-append LIBS -lwsock32 |
| 720 | } |
| 721 | } |
| 722 | |
| 723 | # The SMTP module requires special libraries and headers for MX DNS |
| 724 | # record lookups and such. |
| 725 | cc-check-includes arpa/nameser.h |
| 726 | cc-include-needs bind/resolv.h netinet/in.h |
| 727 |
| --- auto.def | |
| +++ auto.def | |
| @@ -717,10 +717,13 @@ | |
| 717 | # Last resort, may be Windows |
| 718 | if {[is_mingw]} { |
| 719 | define-append LIBS -lwsock32 |
| 720 | } |
| 721 | } |
| 722 | |
| 723 | # Some systems (ex: SunOS) require -lrt in order to use nanosleep |
| 724 | cc-check-function-in-lib nanosleep rt |
| 725 | |
| 726 | # The SMTP module requires special libraries and headers for MX DNS |
| 727 | # record lookups and such. |
| 728 | cc-check-includes arpa/nameser.h |
| 729 | cc-include-needs bind/resolv.h netinet/in.h |
| 730 |