Fossil SCM
On non-MSVC-platforms (including MinGW), dynamic builds are already the default, so let "fossil version -v" reflect that.
Commit
b2c03de312803c70ecf02cf8af483da13efec28b
Parent
b463e469951507d…
5 files changed
+7
-5
+3
+7
-4
+7
-4
+7
-4
+7
-5
| --- Makefile.classic | ||
| +++ Makefile.classic | ||
| @@ -41,24 +41,26 @@ | ||
| 41 | 41 | # FOSSIL_ENABLE_MINIZ = 1 |
| 42 | 42 | # TCC += -DFOSSIL_ENABLE_MINIZ |
| 43 | 43 | |
| 44 | 44 | # To add support for HTTPS |
| 45 | 45 | TCC += -DFOSSIL_ENABLE_SSL |
| 46 | + | |
| 47 | +#### We sometimes add the -static option here so that we can build a | |
| 48 | +# static executable that will run in a chroot jail. | |
| 49 | +#LIB = -static | |
| 50 | +TCC += -DFOSSIL_DYNAMIC_BUILD=1 | |
| 46 | 51 | |
| 47 | 52 | #### Extra arguments for linking the finished binary. Fossil needs |
| 48 | 53 | # to link against the Z-Lib compression library unless the miniz |
| 49 | 54 | # library in the source tree is being used. There are no other |
| 50 | -# required dependencies. We sometimes add the -static option | |
| 51 | -# here so that we can build a static executable that will run in | |
| 52 | -# a chroot jail. | |
| 53 | -# | |
| 55 | +# required dependencies. | |
| 54 | 56 | ZLIB_LIB.0 = -lz |
| 55 | 57 | ZLIB_LIB.1 = |
| 56 | 58 | ZLIB_LIB. = $(ZLIB_LIB.0) |
| 57 | 59 | |
| 58 | 60 | # If using zlib: |
| 59 | -LIB = $(ZLIB_LIB.$(FOSSIL_ENABLE_MINIZ)) $(LDFLAGS) | |
| 61 | +LIB += $(ZLIB_LIB.$(FOSSIL_ENABLE_MINIZ)) $(LDFLAGS) | |
| 60 | 62 | |
| 61 | 63 | # If using HTTPS: |
| 62 | 64 | LIB += -lcrypto -lssl |
| 63 | 65 | |
| 64 | 66 | #### Tcl shell for use in running the fossil testsuite. If you do not |
| 65 | 67 |
| --- Makefile.classic | |
| +++ Makefile.classic | |
| @@ -41,24 +41,26 @@ | |
| 41 | # FOSSIL_ENABLE_MINIZ = 1 |
| 42 | # TCC += -DFOSSIL_ENABLE_MINIZ |
| 43 | |
| 44 | # To add support for HTTPS |
| 45 | TCC += -DFOSSIL_ENABLE_SSL |
| 46 | |
| 47 | #### Extra arguments for linking the finished binary. Fossil needs |
| 48 | # to link against the Z-Lib compression library unless the miniz |
| 49 | # library in the source tree is being used. There are no other |
| 50 | # required dependencies. We sometimes add the -static option |
| 51 | # here so that we can build a static executable that will run in |
| 52 | # a chroot jail. |
| 53 | # |
| 54 | ZLIB_LIB.0 = -lz |
| 55 | ZLIB_LIB.1 = |
| 56 | ZLIB_LIB. = $(ZLIB_LIB.0) |
| 57 | |
| 58 | # If using zlib: |
| 59 | LIB = $(ZLIB_LIB.$(FOSSIL_ENABLE_MINIZ)) $(LDFLAGS) |
| 60 | |
| 61 | # If using HTTPS: |
| 62 | LIB += -lcrypto -lssl |
| 63 | |
| 64 | #### Tcl shell for use in running the fossil testsuite. If you do not |
| 65 |
| --- Makefile.classic | |
| +++ Makefile.classic | |
| @@ -41,24 +41,26 @@ | |
| 41 | # FOSSIL_ENABLE_MINIZ = 1 |
| 42 | # TCC += -DFOSSIL_ENABLE_MINIZ |
| 43 | |
| 44 | # To add support for HTTPS |
| 45 | TCC += -DFOSSIL_ENABLE_SSL |
| 46 | |
| 47 | #### We sometimes add the -static option here so that we can build a |
| 48 | # static executable that will run in a chroot jail. |
| 49 | #LIB = -static |
| 50 | TCC += -DFOSSIL_DYNAMIC_BUILD=1 |
| 51 | |
| 52 | #### Extra arguments for linking the finished binary. Fossil needs |
| 53 | # to link against the Z-Lib compression library unless the miniz |
| 54 | # library in the source tree is being used. There are no other |
| 55 | # required dependencies. |
| 56 | ZLIB_LIB.0 = -lz |
| 57 | ZLIB_LIB.1 = |
| 58 | ZLIB_LIB. = $(ZLIB_LIB.0) |
| 59 | |
| 60 | # If using zlib: |
| 61 | LIB += $(ZLIB_LIB.$(FOSSIL_ENABLE_MINIZ)) $(LDFLAGS) |
| 62 | |
| 63 | # If using HTTPS: |
| 64 | LIB += -lcrypto -lssl |
| 65 | |
| 66 | #### Tcl shell for use in running the fossil testsuite. If you do not |
| 67 |
M
auto.def
+3
| --- auto.def | ||
| +++ auto.def | ||
| @@ -113,10 +113,13 @@ | ||
| 113 | 113 | |
| 114 | 114 | if {[opt-bool static]} { |
| 115 | 115 | # XXX: This will not work on all systems. |
| 116 | 116 | define-append EXTRA_LDFLAGS -static |
| 117 | 117 | msg-result "Trying to link statically" |
| 118 | +} else { | |
| 119 | + define-append EXTRA_CFLAGS -DFOSSIL_DYNAMIC_BUILD=1 | |
| 120 | + define FOSSIL_DYNAMIC_BUILD | |
| 118 | 121 | } |
| 119 | 122 | |
| 120 | 123 | set tclpath [opt-val with-tcl] |
| 121 | 124 | if {$tclpath ne ""} { |
| 122 | 125 | set tclprivatestubs [opt-bool with-tcl-private-stubs] |
| 123 | 126 |
| --- auto.def | |
| +++ auto.def | |
| @@ -113,10 +113,13 @@ | |
| 113 | |
| 114 | if {[opt-bool static]} { |
| 115 | # XXX: This will not work on all systems. |
| 116 | define-append EXTRA_LDFLAGS -static |
| 117 | msg-result "Trying to link statically" |
| 118 | } |
| 119 | |
| 120 | set tclpath [opt-val with-tcl] |
| 121 | if {$tclpath ne ""} { |
| 122 | set tclprivatestubs [opt-bool with-tcl-private-stubs] |
| 123 |
| --- auto.def | |
| +++ auto.def | |
| @@ -113,10 +113,13 @@ | |
| 113 | |
| 114 | if {[opt-bool static]} { |
| 115 | # XXX: This will not work on all systems. |
| 116 | define-append EXTRA_LDFLAGS -static |
| 117 | msg-result "Trying to link statically" |
| 118 | } else { |
| 119 | define-append EXTRA_CFLAGS -DFOSSIL_DYNAMIC_BUILD=1 |
| 120 | define FOSSIL_DYNAMIC_BUILD |
| 121 | } |
| 122 | |
| 123 | set tclpath [opt-val with-tcl] |
| 124 | if {$tclpath ne ""} { |
| 125 | set tclprivatestubs [opt-bool with-tcl-private-stubs] |
| 126 |
+7
-4
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -745,14 +745,17 @@ | ||
| 745 | 745 | ifdef FOSSIL_ENABLE_JSON |
| 746 | 746 | TCC += -DFOSSIL_ENABLE_JSON=1 |
| 747 | 747 | RCC += -DFOSSIL_ENABLE_JSON=1 |
| 748 | 748 | endif |
| 749 | 749 | |
| 750 | -#### We add the -static option here so that we can build a static | |
| 751 | -# executable that will run in a chroot jail. | |
| 752 | -# | |
| 753 | -LIB = -static | |
| 750 | +#### The option -static has no effect on mingw(-w64), only | |
| 751 | +# dynamic executables can be built linking with msvcrt.dll. | |
| 752 | +# Openssl (optional) and zlib however are always linked in | |
| 753 | +# statically. | |
| 754 | +#LIB = -static | |
| 755 | +TCC += -DFOSSIL_DYNAMIC_BUILD=1 | |
| 756 | +RCC += -DFOSSIL_DYNAMIC_BUILD=1 | |
| 754 | 757 | |
| 755 | 758 | #### MinGW: If available, use the Unicode capable runtime startup code. |
| 756 | 759 | # |
| 757 | 760 | ifndef MINGW_IS_32BIT_ONLY |
| 758 | 761 | LIB += -municode |
| 759 | 762 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -745,14 +745,17 @@ | |
| 745 | ifdef FOSSIL_ENABLE_JSON |
| 746 | TCC += -DFOSSIL_ENABLE_JSON=1 |
| 747 | RCC += -DFOSSIL_ENABLE_JSON=1 |
| 748 | endif |
| 749 | |
| 750 | #### We add the -static option here so that we can build a static |
| 751 | # executable that will run in a chroot jail. |
| 752 | # |
| 753 | LIB = -static |
| 754 | |
| 755 | #### MinGW: If available, use the Unicode capable runtime startup code. |
| 756 | # |
| 757 | ifndef MINGW_IS_32BIT_ONLY |
| 758 | LIB += -municode |
| 759 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -745,14 +745,17 @@ | |
| 745 | ifdef FOSSIL_ENABLE_JSON |
| 746 | TCC += -DFOSSIL_ENABLE_JSON=1 |
| 747 | RCC += -DFOSSIL_ENABLE_JSON=1 |
| 748 | endif |
| 749 | |
| 750 | #### The option -static has no effect on mingw(-w64), only |
| 751 | # dynamic executables can be built linking with msvcrt.dll. |
| 752 | # Openssl (optional) and zlib however are always linked in |
| 753 | # statically. |
| 754 | #LIB = -static |
| 755 | TCC += -DFOSSIL_DYNAMIC_BUILD=1 |
| 756 | RCC += -DFOSSIL_DYNAMIC_BUILD=1 |
| 757 | |
| 758 | #### MinGW: If available, use the Unicode capable runtime startup code. |
| 759 | # |
| 760 | ifndef MINGW_IS_32BIT_ONLY |
| 761 | LIB += -municode |
| 762 |
+7
-4
| --- win/Makefile.mingw | ||
| +++ win/Makefile.mingw | ||
| @@ -298,14 +298,17 @@ | ||
| 298 | 298 | ifdef FOSSIL_ENABLE_JSON |
| 299 | 299 | TCC += -DFOSSIL_ENABLE_JSON=1 |
| 300 | 300 | RCC += -DFOSSIL_ENABLE_JSON=1 |
| 301 | 301 | endif |
| 302 | 302 | |
| 303 | -#### We add the -static option here so that we can build a static | |
| 304 | -# executable that will run in a chroot jail. | |
| 305 | -# | |
| 306 | -LIB = -static | |
| 303 | +#### The option -static has no effect on mingw(-w64), only | |
| 304 | +# dynamic executables can be built linking with msvcrt.dll. | |
| 305 | +# Openssl (optional) and zlib however are always linked in | |
| 306 | +# statically. | |
| 307 | +#LIB = -static | |
| 308 | +TCC += -DFOSSIL_DYNAMIC_BUILD=1 | |
| 309 | +RCC += -DFOSSIL_DYNAMIC_BUILD=1 | |
| 307 | 310 | |
| 308 | 311 | #### MinGW: If available, use the Unicode capable runtime startup code. |
| 309 | 312 | # |
| 310 | 313 | ifndef MINGW_IS_32BIT_ONLY |
| 311 | 314 | LIB += -municode |
| 312 | 315 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -298,14 +298,17 @@ | |
| 298 | ifdef FOSSIL_ENABLE_JSON |
| 299 | TCC += -DFOSSIL_ENABLE_JSON=1 |
| 300 | RCC += -DFOSSIL_ENABLE_JSON=1 |
| 301 | endif |
| 302 | |
| 303 | #### We add the -static option here so that we can build a static |
| 304 | # executable that will run in a chroot jail. |
| 305 | # |
| 306 | LIB = -static |
| 307 | |
| 308 | #### MinGW: If available, use the Unicode capable runtime startup code. |
| 309 | # |
| 310 | ifndef MINGW_IS_32BIT_ONLY |
| 311 | LIB += -municode |
| 312 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -298,14 +298,17 @@ | |
| 298 | ifdef FOSSIL_ENABLE_JSON |
| 299 | TCC += -DFOSSIL_ENABLE_JSON=1 |
| 300 | RCC += -DFOSSIL_ENABLE_JSON=1 |
| 301 | endif |
| 302 | |
| 303 | #### The option -static has no effect on mingw(-w64), only |
| 304 | # dynamic executables can be built linking with msvcrt.dll. |
| 305 | # Openssl (optional) and zlib however are always linked in |
| 306 | # statically. |
| 307 | #LIB = -static |
| 308 | TCC += -DFOSSIL_DYNAMIC_BUILD=1 |
| 309 | RCC += -DFOSSIL_DYNAMIC_BUILD=1 |
| 310 | |
| 311 | #### MinGW: If available, use the Unicode capable runtime startup code. |
| 312 | # |
| 313 | ifndef MINGW_IS_32BIT_ONLY |
| 314 | LIB += -municode |
| 315 |
+7
-4
| --- win/Makefile.mingw.mistachkin | ||
| +++ win/Makefile.mingw.mistachkin | ||
| @@ -298,14 +298,17 @@ | ||
| 298 | 298 | ifdef FOSSIL_ENABLE_JSON |
| 299 | 299 | TCC += -DFOSSIL_ENABLE_JSON=1 |
| 300 | 300 | RCC += -DFOSSIL_ENABLE_JSON=1 |
| 301 | 301 | endif |
| 302 | 302 | |
| 303 | -#### We add the -static option here so that we can build a static | |
| 304 | -# executable that will run in a chroot jail. | |
| 305 | -# | |
| 306 | -LIB = -static | |
| 303 | +#### The option -static has no effect on mingw(-w64), only | |
| 304 | +# dynamic executables can be built linking with msvcrt.dll. | |
| 305 | +# Openssl (optional) and zlib however are always linked in | |
| 306 | +# statically. | |
| 307 | +#LIB = -static | |
| 308 | +TCC += -DFOSSIL_DYNAMIC_BUILD=1 | |
| 309 | +RCC += -DFOSSIL_DYNAMIC_BUILD=1 | |
| 307 | 310 | |
| 308 | 311 | #### MinGW: If available, use the Unicode capable runtime startup code. |
| 309 | 312 | # |
| 310 | 313 | ifndef MINGW_IS_32BIT_ONLY |
| 311 | 314 | LIB += -municode |
| 312 | 315 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -298,14 +298,17 @@ | |
| 298 | ifdef FOSSIL_ENABLE_JSON |
| 299 | TCC += -DFOSSIL_ENABLE_JSON=1 |
| 300 | RCC += -DFOSSIL_ENABLE_JSON=1 |
| 301 | endif |
| 302 | |
| 303 | #### We add the -static option here so that we can build a static |
| 304 | # executable that will run in a chroot jail. |
| 305 | # |
| 306 | LIB = -static |
| 307 | |
| 308 | #### MinGW: If available, use the Unicode capable runtime startup code. |
| 309 | # |
| 310 | ifndef MINGW_IS_32BIT_ONLY |
| 311 | LIB += -municode |
| 312 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -298,14 +298,17 @@ | |
| 298 | ifdef FOSSIL_ENABLE_JSON |
| 299 | TCC += -DFOSSIL_ENABLE_JSON=1 |
| 300 | RCC += -DFOSSIL_ENABLE_JSON=1 |
| 301 | endif |
| 302 | |
| 303 | #### The option -static has no effect on mingw(-w64), only |
| 304 | # dynamic executables can be built linking with msvcrt.dll. |
| 305 | # Openssl (optional) and zlib however are always linked in |
| 306 | # statically. |
| 307 | #LIB = -static |
| 308 | TCC += -DFOSSIL_DYNAMIC_BUILD=1 |
| 309 | RCC += -DFOSSIL_DYNAMIC_BUILD=1 |
| 310 | |
| 311 | #### MinGW: If available, use the Unicode capable runtime startup code. |
| 312 | # |
| 313 | ifndef MINGW_IS_32BIT_ONLY |
| 314 | LIB += -municode |
| 315 |