mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 22:04:51 +02:00
8046818: Hotspot build system looking for sdt.h in the wrong place
Reviewed-by: sla, dholmes
This commit is contained in:
parent
08e90ebfcb
commit
a145a396fc
1 changed files with 8 additions and 1 deletions
|
@ -40,7 +40,14 @@ else
|
|||
ifneq ($(ALT_SDT_H),)
|
||||
SDT_H_FILE = $(ALT_SDT_H)
|
||||
else
|
||||
SDT_H_FILE = /usr/include/sys/sdt.h
|
||||
ifeq ($(USE_CLANG), true)
|
||||
# Clang doesn't support the -print-sysroot option and there is no known equivalent
|
||||
# option, so fall back to using / as sysroot
|
||||
SDT_SYSROOT=
|
||||
else
|
||||
SDT_SYSROOT=$(shell $(CXX) -print-sysroot)
|
||||
endif
|
||||
SDT_H_FILE = $(SDT_SYSROOT)/usr/include/sys/sdt.h
|
||||
endif
|
||||
|
||||
DTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue