openjdk: fix build

This commit is contained in:
Matheus
2026-05-02 19:57:24 -03:00
parent bb45df4db4
commit 056add1cc6
+2 -2
View File
@@ -7,7 +7,7 @@ index 66e01db..651621e 100644
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
PICFLAG="-fPIC" PICFLAG="-fPIC"
- PIEFLAG="-fPIE" - PIEFLAG="-fPIE"
+ if test "x$OPENJDK_TARGET_OS_ENV" = xastral; then + if echo "$OPENJDK_TARGET_AUTOCONF_NAME" | grep -q 'astral'; then
+ PIEFLAG="" + PIEFLAG=""
+ else + else
+ PIEFLAG="-fPIE" + PIEFLAG="-fPIE"
@@ -25,7 +25,7 @@ index 23bb33e..368f5a8 100644
# java heap. # java heap.
- if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then - if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then
+ if test "x$OPENJDK_TARGET_CPU_BITS" != "x32" && \ + if test "x$OPENJDK_TARGET_CPU_BITS" != "x32" && \
+ test "x$OPENJDK_TARGET_OS_ENV" != xastral; then + ! echo "$OPENJDK_TARGET_AUTOCONF_NAME" | grep -q 'astral'; then
EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -pie" EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -pie"
fi fi
fi fi