summaryrefslogtreecommitdiffstats
path: root/llvm/projects/sample
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2013-07-01 08:07:52 +0000
committerSylvestre Ledru <sylvestre@debian.org>2013-07-01 08:07:52 +0000
commit93a491bbf4ea9cfcde71d9d78e92488254878667 (patch)
treec9f8d6530c5bd2c96e14ad41419d1760e560a744 /llvm/projects/sample
parent9319db2ce94748dbf5bf76ed7c4997254bab3203 (diff)
downloadbcm5719-llvm-93a491bbf4ea9cfcde71d9d78e92488254878667.tar.gz
bcm5719-llvm-93a491bbf4ea9cfcde71d9d78e92488254878667.zip
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 #16444. Patch by Robert Millan in the context of Debian. llvm-svn: 185311
Diffstat (limited to 'llvm/projects/sample')
-rw-r--r--llvm/projects/sample/Makefile.llvm.rules4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/projects/sample/Makefile.llvm.rules b/llvm/projects/sample/Makefile.llvm.rules
index 30f54c45e20..b8ec2b71f4a 100644
--- a/llvm/projects/sample/Makefile.llvm.rules
+++ b/llvm/projects/sample/Makefile.llvm.rules
@@ -208,10 +208,12 @@ ifeq ($(ENABLE_OPTIMIZED),1)
BuildMode := Release
# Don't use -fomit-frame-pointer on Darwin or FreeBSD.
ifneq ($(HOST_OS),FreeBSD)
+ ifneq ($(HOST_OS),GNU/kFreeBSD)
ifneq ($(HOST_OS),Darwin)
OmitFramePointer := -fomit-frame-pointer
endif
endif
+ endif
# Darwin requires -fstrict-aliasing to be explicitly enabled.
# Avoid -fstrict-aliasing on Darwin for now, there are unresolved issues
@@ -1372,7 +1374,7 @@ LD.Flags += -Wl,-exported_symbol,_main
endif
endif
-ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux NetBSD FreeBSD))
+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux NetBSD FreeBSD GNU/kFreeBSD))
ifneq ($(ARCH), Mips)
LD.Flags += -Wl,--version-script=$(PROJ_SRC_ROOT)/autoconf/ExportMap.map
endif
OpenPOWER on IntegriCloud