<AWT Dev> RFR: JDK-8210944 Stop replacing -MD with -MT in libwindowsaccessbridge

Erik Joelsson erik.joelsson at oracle.com
Thu Sep 20 16:11:00 UTC 2018


Looks good.

/Erik


On 2018-09-20 00:05, Magnus Ihse Bursie wrote:
> Currently, we are filtering out -MD and replacing it with -MT when 
> building libwindowsaccessbridge. This has just been a way to replicate 
> the behavior of old build system, and there's no point in doing so.
>
> In fact, it is recommended *not* to mix -MT and -MD in dlls and 
> executable, as that might lead to problems (as seen in e.g. JDK-8207139).
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8210944
> Patch inline:
> diff --git a/make/lib/Lib-jdk.accessibility.gmk 
> b/make/lib/Lib-jdk.accessibility.gmk
> --- a/make/lib/Lib-jdk.accessibility.gmk
> +++ b/make/lib/Lib-jdk.accessibility.gmk
> @@ -69,7 +69,7 @@
>          EXTRA_SRC := common, \
>          OPTIMIZATION := LOW, \
>          DISABLED_WARNINGS_microsoft := 4311 4302 4312, \
> -        CFLAGS := $(filter-out -MD, $(CFLAGS_JDKLIB)) -MT \
> +        CFLAGS := $(CFLAGS_JDKLIB) \
>              -DACCESSBRIDGE_ARCH_$2, \
>          EXTRA_HEADER_DIRS := \
>              include/bridge \
>
> /Magnus



More information about the awt-dev mailing list