Fossil SCM

Small Makefile patch for SunOS received from Claes Nästén.

drh 2025-02-11 10:42 trunk
Commit 3bff7b92d6d152daaaa587c2b690b60fd683da4ad281578577a91c3968ea1bf2
2 files changed +1 -1 +3
--- Makefile.classic
+++ Makefile.classic
@@ -95,11 +95,11 @@
9595
#
9696
# Automatic platform-specific options.
9797
HOST_OS_CMD = uname -s
9898
HOST_OS = $(HOST_OS_CMD:sh)
9999
100
-LIB.SunOS= -lsocket -lnsl
100
+LIB.SunOS= -lsocket -lnsl -lrt
101101
LIB += $(LIB.$(HOST_OS))
102102
103103
TCC.DragonFly += -DUSE_PREAD
104104
TCC.FreeBSD += -DUSE_PREAD
105105
TCC.NetBSD += -DUSE_PREAD
106106
--- 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
+3
--- auto.def
+++ auto.def
@@ -717,10 +717,13 @@
717717
# Last resort, may be Windows
718718
if {[is_mingw]} {
719719
define-append LIBS -lwsock32
720720
}
721721
}
722
+
723
+# Some systems (ex: SunOS) require -lrt in order to use nanosleep
724
+cc-check-function-in-lib nanosleep rt
722725
723726
# The SMTP module requires special libraries and headers for MX DNS
724727
# record lookups and such.
725728
cc-check-includes arpa/nameser.h
726729
cc-include-needs bind/resolv.h netinet/in.h
727730
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button