Skip to content

Commit e7795cc

Browse files
author
SendaoYan
committed
8347347: Build fails undefined symbol: __asan_init by clang17
Reviewed-by: erikj, jwaters
1 parent 788f049 commit e7795cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

make/autoconf/jdk-options.m4

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -446,6 +446,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_ADDRESS_SANITIZER],
446446
fi
447447
if test "x$TOOLCHAIN_TYPE" = "xclang"; then
448448
ASAN_CFLAGS="$ASAN_CFLAGS -fsanitize-address-use-after-return=never"
449+
ASAN_LDFLAGS="$ASAN_LDFLAGS -shared-libasan"
449450
fi
450451
elif test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then
451452
# -Oy- is equivalent to -fno-omit-frame-pointer in GCC/Clang.

0 commit comments

Comments
 (0)