Fossil SCM
Update the makefile to enable USE_PREAD on the BSDs.
Commit
b84b954fe0fe0699a99c3c544b2b1e6d8e48eaa8
Parent
5277d53da733354…
1 file changed
+13
-3
M
Makefile
+13
-3
| --- Makefile | ||
| +++ Makefile | ||
| @@ -41,13 +41,10 @@ | ||
| 41 | 41 | # other dependencies. We sometimes add the -static option here |
| 42 | 42 | # so that we can build a static executable that will run in a |
| 43 | 43 | # chroot jail. |
| 44 | 44 | # |
| 45 | 45 | LIB = -lz $(LDFLAGS) |
| 46 | -HOST_OS!= uname -s | |
| 47 | -LIB.SunOS= -lsocket -lnsl | |
| 48 | -LIB += $(LIB.$(HOST_OS)) | |
| 49 | 46 | |
| 50 | 47 | # If using HTTPS: |
| 51 | 48 | LIB += -lcrypto -lssl |
| 52 | 49 | |
| 53 | 50 | #### Tcl shell for use in running the fossil testsuite. |
| @@ -54,6 +51,19 @@ | ||
| 54 | 51 | # |
| 55 | 52 | TCLSH = tclsh |
| 56 | 53 | |
| 57 | 54 | # You should not need to change anything below this line |
| 58 | 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 | + | |
| 59 | 69 | include $(SRCDIR)/main.mk |
| 60 | 70 |
| --- 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 |