diff --git a/java-11-openjdk.spec b/java-11-openjdk.spec index afe4a52..828b073 100644 --- a/java-11-openjdk.spec +++ b/java-11-openjdk.spec @@ -200,6 +200,16 @@ %global staticlibs_loop %{nil} %endif +%if %{include_staticlibs} +# Extra target for producing the static-libraries. Separate from +# other targets since this target is configured to use in-tree +# AWT dependencies: lcms, libjpeg, libpng, libharfbuzz, giflib +# and possibly others +%global static_libs_target static-libs-image +%else +%global static_libs_target %{nil} +%endif + # http://openjdk.java.net/groups/build/doc/building.html # unlike portables,the rpms have to use static_libs_target very dynamically #if %{without bootstrap}