perf: change flags, add optimizations
This commit is contained in:
parent
11e8999e66
commit
6b3da81ed3
1 changed files with 6 additions and 4 deletions
|
@ -27,11 +27,13 @@ RUN git clone --single-branch --depth 1 \
|
||||||
WORKDIR /build/src
|
WORKDIR /build/src
|
||||||
RUN bash get_source.sh
|
RUN bash get_source.sh
|
||||||
|
|
||||||
|
ENV CC=/usr/bin/gcc CXX=/usr/bin/g++ \
|
||||||
|
CFLAGS="-O3 -flto -fuse-linker-plugin" \
|
||||||
|
LDFLAGS="-Wl,-O1"
|
||||||
RUN bash configure \
|
RUN bash configure \
|
||||||
--enable-libffi-bundling --enable-ddr --enable-jitserver \
|
--with-boot-jdk=/build/bootjdk \
|
||||||
--enable-fallback-linker --with-jtreg=/build/jtreg --with-boot-jdk=/build/bootjdk \
|
--with-openssl=system \
|
||||||
--with-openssl=system --with-extra-ldflags="-Wl,-z,noexecstack"
|
--enable-jvm-feature-link-time-opt
|
||||||
|
|
||||||
RUN make all JOBS=$(nproc)
|
RUN make all JOBS=$(nproc)
|
||||||
|
|
||||||
# jlink by advice from https://adoptium.net/blog/2021/10/jlink-to-produce-own-runtime/
|
# jlink by advice from https://adoptium.net/blog/2021/10/jlink-to-produce-own-runtime/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue