diff --git a/projects/openjdk.org/package.yml b/projects/openjdk.org/package.yml index 9a91faae..314493bc 100644 --- a/projects/openjdk.org/package.yml +++ b/projects/openjdk.org/package.yml @@ -90,6 +90,14 @@ build: - make images $MAKE_ARGS - mkdir -p {{prefix}} - mv $JDK_DIR {{prefix}}/ + - run: | + # jni.h:45:10: fatal error: 'jni_md.h' file not found + if test -d {{ hw.platform }}; then + mv {{ hw.platform }}/* . + rmdir {{ hw.platform }} + ln -s . {{ hw.platform }} + fi + working-directory: ${{prefix}}/include env: MAKE_ARGS: 'JOBS={{ hw.concurrency }}' darwin: