Fossil SCM
Configure OpenSSL correctly in MinGW-w64 (64-bit) build.
Commit
67356700e000fee900d6090934da8e4f9a0513b1
Parent
80b4adddec55f6b…
3 files changed
+9
-5
+9
-5
+9
-5
+9
-5
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -486,10 +486,18 @@ | ||
| 486 | 486 | ifndef MINGW_IS_32BIT_ONLY |
| 487 | 487 | ifeq (,$(findstring w64-mingw32,$(PREFIX))) |
| 488 | 488 | MINGW_IS_32BIT_ONLY = 1 |
| 489 | 489 | endif |
| 490 | 490 | endif |
| 491 | +ifeq (,$(findstring x86_64-w64-mingw32,$(PREFIX))) | |
| 492 | +SSLCONFIG = mingw | |
| 493 | +else | |
| 494 | +SSLCONFIG = mingw64 | |
| 495 | +endif | |
| 496 | +ifndef FOSSIL_ENABLE_MINIZ | |
| 497 | +SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib | |
| 498 | +endif | |
| 491 | 499 | |
| 492 | 500 | #### The directories where the zlib include and library files are located. |
| 493 | 501 | # |
| 494 | 502 | ZINCDIR = $(SRCDIR)/../compat/zlib |
| 495 | 503 | ZLIBDIR = $(SRCDIR)/../compat/zlib |
| @@ -859,15 +867,11 @@ | ||
| 859 | 867 | ifndef FOSSIL_ENABLE_MINIZ |
| 860 | 868 | LIBTARGETS += zlib |
| 861 | 869 | endif |
| 862 | 870 | |
| 863 | 871 | openssl: $(LIBTARGETS) |
| 864 | -ifndef FOSSIL_ENABLE_MINIZ | |
| 865 | - cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw | |
| 866 | -else | |
| 867 | - cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw | |
| 868 | -endif | |
| 872 | + cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) $(SSLCONFIG) | |
| 869 | 873 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 870 | 874 | |
| 871 | 875 | clean-openssl: |
| 872 | 876 | $(MAKE) -C $(OPENSSLLIBDIR) clean |
| 873 | 877 | |
| 874 | 878 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -486,10 +486,18 @@ | |
| 486 | ifndef MINGW_IS_32BIT_ONLY |
| 487 | ifeq (,$(findstring w64-mingw32,$(PREFIX))) |
| 488 | MINGW_IS_32BIT_ONLY = 1 |
| 489 | endif |
| 490 | endif |
| 491 | |
| 492 | #### The directories where the zlib include and library files are located. |
| 493 | # |
| 494 | ZINCDIR = $(SRCDIR)/../compat/zlib |
| 495 | ZLIBDIR = $(SRCDIR)/../compat/zlib |
| @@ -859,15 +867,11 @@ | |
| 859 | ifndef FOSSIL_ENABLE_MINIZ |
| 860 | LIBTARGETS += zlib |
| 861 | endif |
| 862 | |
| 863 | openssl: $(LIBTARGETS) |
| 864 | ifndef FOSSIL_ENABLE_MINIZ |
| 865 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 866 | else |
| 867 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw |
| 868 | endif |
| 869 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 870 | |
| 871 | clean-openssl: |
| 872 | $(MAKE) -C $(OPENSSLLIBDIR) clean |
| 873 | |
| 874 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -486,10 +486,18 @@ | |
| 486 | ifndef MINGW_IS_32BIT_ONLY |
| 487 | ifeq (,$(findstring w64-mingw32,$(PREFIX))) |
| 488 | MINGW_IS_32BIT_ONLY = 1 |
| 489 | endif |
| 490 | endif |
| 491 | ifeq (,$(findstring x86_64-w64-mingw32,$(PREFIX))) |
| 492 | SSLCONFIG = mingw |
| 493 | else |
| 494 | SSLCONFIG = mingw64 |
| 495 | endif |
| 496 | ifndef FOSSIL_ENABLE_MINIZ |
| 497 | SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib |
| 498 | endif |
| 499 | |
| 500 | #### The directories where the zlib include and library files are located. |
| 501 | # |
| 502 | ZINCDIR = $(SRCDIR)/../compat/zlib |
| 503 | ZLIBDIR = $(SRCDIR)/../compat/zlib |
| @@ -859,15 +867,11 @@ | |
| 867 | ifndef FOSSIL_ENABLE_MINIZ |
| 868 | LIBTARGETS += zlib |
| 869 | endif |
| 870 | |
| 871 | openssl: $(LIBTARGETS) |
| 872 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) $(SSLCONFIG) |
| 873 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 874 | |
| 875 | clean-openssl: |
| 876 | $(MAKE) -C $(OPENSSLLIBDIR) clean |
| 877 | |
| 878 |
+9
-5
| --- win/Makefile.mingw | ||
| +++ win/Makefile.mingw | ||
| @@ -94,10 +94,18 @@ | ||
| 94 | 94 | ifndef MINGW_IS_32BIT_ONLY |
| 95 | 95 | ifeq (,$(findstring w64-mingw32,$(PREFIX))) |
| 96 | 96 | MINGW_IS_32BIT_ONLY = 1 |
| 97 | 97 | endif |
| 98 | 98 | endif |
| 99 | +ifeq (,$(findstring x86_64-w64-mingw32,$(PREFIX))) | |
| 100 | +SSLCONFIG = mingw | |
| 101 | +else | |
| 102 | +SSLCONFIG = mingw64 | |
| 103 | +endif | |
| 104 | +ifndef FOSSIL_ENABLE_MINIZ | |
| 105 | +SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib | |
| 106 | +endif | |
| 99 | 107 | |
| 100 | 108 | #### The directories where the zlib include and library files are located. |
| 101 | 109 | # |
| 102 | 110 | ZINCDIR = $(SRCDIR)/../compat/zlib |
| 103 | 111 | ZLIBDIR = $(SRCDIR)/../compat/zlib |
| @@ -788,15 +796,11 @@ | ||
| 788 | 796 | ifndef FOSSIL_ENABLE_MINIZ |
| 789 | 797 | LIBTARGETS += zlib |
| 790 | 798 | endif |
| 791 | 799 | |
| 792 | 800 | openssl: $(LIBTARGETS) |
| 793 | -ifndef FOSSIL_ENABLE_MINIZ | |
| 794 | - cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw | |
| 795 | -else | |
| 796 | - cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw | |
| 797 | -endif | |
| 801 | + cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) $(SSLCONFIG) | |
| 798 | 802 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 799 | 803 | |
| 800 | 804 | clean-openssl: |
| 801 | 805 | $(MAKE) -C $(OPENSSLLIBDIR) clean |
| 802 | 806 | |
| 803 | 807 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -94,10 +94,18 @@ | |
| 94 | ifndef MINGW_IS_32BIT_ONLY |
| 95 | ifeq (,$(findstring w64-mingw32,$(PREFIX))) |
| 96 | MINGW_IS_32BIT_ONLY = 1 |
| 97 | endif |
| 98 | endif |
| 99 | |
| 100 | #### The directories where the zlib include and library files are located. |
| 101 | # |
| 102 | ZINCDIR = $(SRCDIR)/../compat/zlib |
| 103 | ZLIBDIR = $(SRCDIR)/../compat/zlib |
| @@ -788,15 +796,11 @@ | |
| 788 | ifndef FOSSIL_ENABLE_MINIZ |
| 789 | LIBTARGETS += zlib |
| 790 | endif |
| 791 | |
| 792 | openssl: $(LIBTARGETS) |
| 793 | ifndef FOSSIL_ENABLE_MINIZ |
| 794 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 795 | else |
| 796 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw |
| 797 | endif |
| 798 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 799 | |
| 800 | clean-openssl: |
| 801 | $(MAKE) -C $(OPENSSLLIBDIR) clean |
| 802 | |
| 803 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -94,10 +94,18 @@ | |
| 94 | ifndef MINGW_IS_32BIT_ONLY |
| 95 | ifeq (,$(findstring w64-mingw32,$(PREFIX))) |
| 96 | MINGW_IS_32BIT_ONLY = 1 |
| 97 | endif |
| 98 | endif |
| 99 | ifeq (,$(findstring x86_64-w64-mingw32,$(PREFIX))) |
| 100 | SSLCONFIG = mingw |
| 101 | else |
| 102 | SSLCONFIG = mingw64 |
| 103 | endif |
| 104 | ifndef FOSSIL_ENABLE_MINIZ |
| 105 | SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib |
| 106 | endif |
| 107 | |
| 108 | #### The directories where the zlib include and library files are located. |
| 109 | # |
| 110 | ZINCDIR = $(SRCDIR)/../compat/zlib |
| 111 | ZLIBDIR = $(SRCDIR)/../compat/zlib |
| @@ -788,15 +796,11 @@ | |
| 796 | ifndef FOSSIL_ENABLE_MINIZ |
| 797 | LIBTARGETS += zlib |
| 798 | endif |
| 799 | |
| 800 | openssl: $(LIBTARGETS) |
| 801 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) $(SSLCONFIG) |
| 802 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 803 | |
| 804 | clean-openssl: |
| 805 | $(MAKE) -C $(OPENSSLLIBDIR) clean |
| 806 | |
| 807 |
+9
-5
| --- win/Makefile.mingw.mistachkin | ||
| +++ win/Makefile.mingw.mistachkin | ||
| @@ -94,10 +94,18 @@ | ||
| 94 | 94 | ifndef MINGW_IS_32BIT_ONLY |
| 95 | 95 | ifeq (,$(findstring w64-mingw32,$(PREFIX))) |
| 96 | 96 | MINGW_IS_32BIT_ONLY = 1 |
| 97 | 97 | endif |
| 98 | 98 | endif |
| 99 | +ifeq (,$(findstring x86_64-w64-mingw32,$(PREFIX))) | |
| 100 | +SSLCONFIG = mingw | |
| 101 | +else | |
| 102 | +SSLCONFIG = mingw64 | |
| 103 | +endif | |
| 104 | +ifndef FOSSIL_ENABLE_MINIZ | |
| 105 | +SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib | |
| 106 | +endif | |
| 99 | 107 | |
| 100 | 108 | #### The directories where the zlib include and library files are located. |
| 101 | 109 | # |
| 102 | 110 | ZINCDIR = $(SRCDIR)/../compat/zlib |
| 103 | 111 | ZLIBDIR = $(SRCDIR)/../compat/zlib |
| @@ -788,15 +796,11 @@ | ||
| 788 | 796 | ifndef FOSSIL_ENABLE_MINIZ |
| 789 | 797 | LIBTARGETS += zlib |
| 790 | 798 | endif |
| 791 | 799 | |
| 792 | 800 | openssl: $(LIBTARGETS) |
| 793 | -ifndef FOSSIL_ENABLE_MINIZ | |
| 794 | - cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw | |
| 795 | -else | |
| 796 | - cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw | |
| 797 | -endif | |
| 801 | + cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) $(SSLCONFIG) | |
| 798 | 802 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 799 | 803 | |
| 800 | 804 | clean-openssl: |
| 801 | 805 | $(MAKE) -C $(OPENSSLLIBDIR) clean |
| 802 | 806 | |
| 803 | 807 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -94,10 +94,18 @@ | |
| 94 | ifndef MINGW_IS_32BIT_ONLY |
| 95 | ifeq (,$(findstring w64-mingw32,$(PREFIX))) |
| 96 | MINGW_IS_32BIT_ONLY = 1 |
| 97 | endif |
| 98 | endif |
| 99 | |
| 100 | #### The directories where the zlib include and library files are located. |
| 101 | # |
| 102 | ZINCDIR = $(SRCDIR)/../compat/zlib |
| 103 | ZLIBDIR = $(SRCDIR)/../compat/zlib |
| @@ -788,15 +796,11 @@ | |
| 788 | ifndef FOSSIL_ENABLE_MINIZ |
| 789 | LIBTARGETS += zlib |
| 790 | endif |
| 791 | |
| 792 | openssl: $(LIBTARGETS) |
| 793 | ifndef FOSSIL_ENABLE_MINIZ |
| 794 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 795 | else |
| 796 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw |
| 797 | endif |
| 798 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 799 | |
| 800 | clean-openssl: |
| 801 | $(MAKE) -C $(OPENSSLLIBDIR) clean |
| 802 | |
| 803 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -94,10 +94,18 @@ | |
| 94 | ifndef MINGW_IS_32BIT_ONLY |
| 95 | ifeq (,$(findstring w64-mingw32,$(PREFIX))) |
| 96 | MINGW_IS_32BIT_ONLY = 1 |
| 97 | endif |
| 98 | endif |
| 99 | ifeq (,$(findstring x86_64-w64-mingw32,$(PREFIX))) |
| 100 | SSLCONFIG = mingw |
| 101 | else |
| 102 | SSLCONFIG = mingw64 |
| 103 | endif |
| 104 | ifndef FOSSIL_ENABLE_MINIZ |
| 105 | SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib |
| 106 | endif |
| 107 | |
| 108 | #### The directories where the zlib include and library files are located. |
| 109 | # |
| 110 | ZINCDIR = $(SRCDIR)/../compat/zlib |
| 111 | ZLIBDIR = $(SRCDIR)/../compat/zlib |
| @@ -788,15 +796,11 @@ | |
| 796 | ifndef FOSSIL_ENABLE_MINIZ |
| 797 | LIBTARGETS += zlib |
| 798 | endif |
| 799 | |
| 800 | openssl: $(LIBTARGETS) |
| 801 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) $(SSLCONFIG) |
| 802 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 803 | |
| 804 | clean-openssl: |
| 805 | $(MAKE) -C $(OPENSSLLIBDIR) clean |
| 806 | |
| 807 |