diff options
Diffstat (limited to 'java/jdk14/Makefile')
-rw-r--r-- | java/jdk14/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/jdk14/Makefile b/java/jdk14/Makefile index a6c683ac8c20..1c74eb0f8619 100644 --- a/java/jdk14/Makefile +++ b/java/jdk14/Makefile @@ -123,7 +123,7 @@ pre-patch: pre-build: @if [ "$${WRKDIRPREFIX}" -a \ -L "/compat/linux/$${WRKDIRPREFIX}" -a \ - x`readlink "/compat/linux/$${WRKDIRPREFIX}"` = x"$${WRKDIRPREFIX}" ]; \ + x`ls -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \ then \ echo "Please set WRKDIRPREFIX to something which doesn't"; \ echo "have a matching symbolic link in /compat/linux."; \ |