| | @@ -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 | |