Fossil SCM

Update the makefile to enable USE_PREAD on the BSDs.

drh 2010-10-26 21:31 trunk
Commit b84b954fe0fe0699a99c3c544b2b1e6d8e48eaa8
1 file changed +13 -3
+13 -3
--- Makefile
+++ Makefile
@@ -41,13 +41,10 @@
4141
# other dependencies. We sometimes add the -static option here
4242
# so that we can build a static executable that will run in a
4343
# chroot jail.
4444
#
4545
LIB = -lz $(LDFLAGS)
46
-HOST_OS!= uname -s
47
-LIB.SunOS= -lsocket -lnsl
48
-LIB += $(LIB.$(HOST_OS))
4946
5047
# If using HTTPS:
5148
LIB += -lcrypto -lssl
5249
5350
#### Tcl shell for use in running the fossil testsuite.
@@ -54,6 +51,19 @@
5451
#
5552
TCLSH = tclsh
5653
5754
# You should not need to change anything below this line
5855
###############################################################################
56
+#
57
+# Automatic platform-specific options.
58
+HOST_OS!= uname -s
59
+
60
+LIB.SunOS= -lsocket -lnsl
61
+LIB += $(LIB.$(HOST_OS))
62
+
63
+TCC.DragonFly += -DUSE_PREAD
64
+TCC.FreeBSD += -DUSE_PREAD
65
+TCC.NetBSD += -DUSE_PREAD
66
+TCC.OpenBSD += -DUSE_PREAD
67
+TCC += $(TCC.$(HOST_OS))
68
+
5969
include $(SRCDIR)/main.mk
6070
--- Makefile
+++ Makefile
@@ -41,13 +41,10 @@
41 # other dependencies. We sometimes add the -static option here
42 # so that we can build a static executable that will run in a
43 # chroot jail.
44 #
45 LIB = -lz $(LDFLAGS)
46 HOST_OS!= uname -s
47 LIB.SunOS= -lsocket -lnsl
48 LIB += $(LIB.$(HOST_OS))
49
50 # If using HTTPS:
51 LIB += -lcrypto -lssl
52
53 #### Tcl shell for use in running the fossil testsuite.
@@ -54,6 +51,19 @@
54 #
55 TCLSH = tclsh
56
57 # You should not need to change anything below this line
58 ###############################################################################
 
 
 
 
 
 
 
 
 
 
 
 
 
59 include $(SRCDIR)/main.mk
60
--- Makefile
+++ Makefile
@@ -41,13 +41,10 @@
41 # other dependencies. We sometimes add the -static option here
42 # so that we can build a static executable that will run in a
43 # chroot jail.
44 #
45 LIB = -lz $(LDFLAGS)
 
 
 
46
47 # If using HTTPS:
48 LIB += -lcrypto -lssl
49
50 #### Tcl shell for use in running the fossil testsuite.
@@ -54,6 +51,19 @@
51 #
52 TCLSH = tclsh
53
54 # You should not need to change anything below this line
55 ###############################################################################
56 #
57 # Automatic platform-specific options.
58 HOST_OS!= uname -s
59
60 LIB.SunOS= -lsocket -lnsl
61 LIB += $(LIB.$(HOST_OS))
62
63 TCC.DragonFly += -DUSE_PREAD
64 TCC.FreeBSD += -DUSE_PREAD
65 TCC.NetBSD += -DUSE_PREAD
66 TCC.OpenBSD += -DUSE_PREAD
67 TCC += $(TCC.$(HOST_OS))
68
69 include $(SRCDIR)/main.mk
70

Keyboard Shortcuts

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