The build system is currently miss-identifying GNU/kFreeBSD as FreeBSD. This kind of simplification is sometimes useful, but in general it's not correct. As GNU/kFreeBSD is an hybrid system, for kernel-related issues we want to match the build definitions used for FreeBSD, whereas for userland-related issues we want to match the definitions used for other systems with Glibc. The current modification adjusts the build system so that they can be distinguished, and explicitly adds GNU/kFreeBSD to the build checks in which it belongs. Fixes bug #16446. Patch by Robert Millan in the context of Debian. llvm-svn: 185313
33 lines
1.1 KiB
Makefile
33 lines
1.1 KiB
Makefile
##===- source/Plugins/Process/POSIX/Makefile ---------------*- Makefile -*-===##
|
|
#
|
|
# The LLVM Compiler Infrastructure
|
|
#
|
|
# This file is distributed under the University of Illinois Open Source
|
|
# License. See LICENSE.TXT for details.
|
|
#
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
LLDB_LEVEL := ../../../..
|
|
LIBRARYNAME := lldbPluginProcessPOSIX
|
|
BUILD_ARCHIVE = 1
|
|
|
|
include $(LLDB_LEVEL)/../../Makefile.config
|
|
|
|
# Extend the include path so we may locate UnwindLLDB.h
|
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/source/Plugins/Utility
|
|
|
|
ifeq ($(HOST_OS),Linux)
|
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/source/Plugins/Process/Linux
|
|
|
|
# Disable warning for now as offsetof is used with an index into a structure member array
|
|
# in defining register info tables.
|
|
CPPFLAGS += -Wno-extended-offsetof
|
|
endif
|
|
|
|
ifneq (,$(filter $(HOST_OS), FreeBSD GNU/kFreeBSD))
|
|
# Extend the include path so we may locate ProcessMonitor
|
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/source/Plugins/Process/FreeBSD
|
|
endif
|
|
|
|
include $(LLDB_LEVEL)/Makefile
|