The MinGW.org Windows System Libraries
修訂 | 2dd5dbbec8fd0de0abab6cb3fe1508aee9195b51 (tree) |
---|---|
時間 | 2018-12-23 08:20:49 |
作者 | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Correct an optional DLL installation and packaging defect.
@@ -1,5 +1,14 @@ | ||
1 | 1 | 2018-12-22 Keith Marshall <keith@users.osdn.me> |
2 | 2 | |
3 | + Correct an optional DLL installation and packaging defect. | |
4 | + | |
5 | + * Makefile.in (optional_dll): New function macro; define it, and... | |
6 | + (MAP_LIBMINGWEX_A_DLLVERSION): ...wrap this, replacing all usage of... | |
7 | + (optional_dll_version, optional_dll_package): ...these; delete them, | |
8 | + together with all dependent references. | |
9 | + | |
10 | +2018-12-22 Keith Marshall <keith@users.osdn.me> | |
11 | + | |
3 | 12 | Update ANSI stdio feature test to accommodate ISO-C11. |
4 | 13 | |
5 | 14 | * include/_mingw.h.in (__USE_MINGW_ANSI_STDIO): Add a deprecation |
@@ -656,11 +656,17 @@ libgmon.a: $(addsuffix .$(OBJEXT), gmon mcount profil) | ||
656 | 656 | # |
657 | 657 | DLLVERSION = "0:0:0" |
658 | 658 | |
659 | +# DLLVERSION must be specified for each DLL file itself, and also for | |
660 | +# the associated installation and distribution rules; the appropriate | |
661 | +# dependencies may be specified by use of this function macro: | |
662 | +# | |
663 | +optional_dll = mingwrt-$1-optdist install-$1-optional-dll $2 | |
664 | + | |
659 | 665 | # Generally, we should prefer to have explicit version specifications, |
660 | 666 | # relating individually to each DLL; these are specified in VERSION.m4, |
661 | 667 | # and propagated here via configure time substitution. |
662 | 668 | # |
663 | -@MAP_LIBMINGWEX_A_DLLVERSION@ | |
669 | +$(call optional_dll,libmingwex,@MAP_LIBMINGWEX_A_DLLVERSION@) | |
664 | 670 | |
665 | 671 | # For convenience, we implement the DLL build rule in the form of a |
666 | 672 | # generic pattern rule, invoked in the form of a request to build any |
@@ -813,9 +819,6 @@ install-%-dll-files: | ||
813 | 819 | $(call INSTALL_DATA,$^,${bindir}) |
814 | 820 | $(if $(STRIP_DLL),$(call STRIP_DLL,$^)) |
815 | 821 | |
816 | -$(call optional_dll_version,libmingwex,@MAP_LIBMINGWEX_A_DLLVERSION@) | |
817 | -optional_dll_version = $(shell echo '$2' | sed s,^[^:]*,install-$1-optional-dll,) | |
818 | - | |
819 | 822 | install-optional-dlls: install-mingwrt-optional-dlls |
820 | 823 | install-mingwrt-optional-dlls: install-libmingwex-optional-dll |
821 | 824 | install-%-optional-dll: %.dll.a bindir libdir |
@@ -931,9 +934,6 @@ mingwrt-mandist: %-mandist: | ||
931 | 934 | optdist: mingwrt-optdist |
932 | 935 | mingwrt-optdist: mingwrt-libmingwex-optdist |
933 | 936 | |
934 | -$(call optional_dll_package,libmingwex,@MAP_LIBMINGWEX_A_DLLVERSION@) | |
935 | -optional_dll_package = $(shell echo '$2' | sed s,^[^:]*,mingwrt-$1-optdist) | |
936 | - | |
937 | 937 | mingwrt-%-optdist: |
938 | 938 | $(RM) -r tmp |
939 | 939 | $(MAKE) --no-print-directory prefix=`pwd`/tmp install-strip-$*-optional-dll |