diff options
author | George Koehler <gkoehler@cvs.openbsd.org> | 2022-05-12 15:51:24 +0000 |
---|---|---|
committer | George Koehler <gkoehler@cvs.openbsd.org> | 2022-05-12 15:51:24 +0000 |
commit | 0fe54e8254748f3f0cb2aacce7457f2e5ac50672 (patch) | |
tree | 945f60d897242ea0280543f5dce923e8aeba9707 /gnu/usr.bin | |
parent | fba33b9aff2f01e4e5019bb295a4cbd71acb03a5 (diff) |
Drop old powerpc flags from the build of clang
Drop NOPIE_FLAGS = -fPIE and change CFLAGS on powerpc to be the same
as on other arches.
ok deraadt@ kettenis@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/clang/Makefile.inc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gnu/usr.bin/clang/Makefile.inc b/gnu/usr.bin/clang/Makefile.inc index 5c16e10af1c..1453b5e27d0 100644 --- a/gnu/usr.bin/clang/Makefile.inc +++ b/gnu/usr.bin/clang/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.25 2021/08/21 03:00:02 gkoehler Exp $ +# $OpenBSD: Makefile.inc,v 1.26 2022/05/12 15:51:23 gkoehler Exp $ CLANG_SRCS?= ${.CURDIR}/../../../llvm/clang LLDB_SRCS?= ${.CURDIR}/../../../llvm/lldb @@ -41,11 +41,6 @@ CXXFLAGS+= -mno-retpoline CXXFLAGS+= -fomit-frame-pointer .endif -# Compiling with -fno-pie doesn't work on powerpc. -.if ${MACHINE_ARCH} == "powerpc" -NOPIE_FLAGS= -fPIE -.endif - CPPFLAGS+= -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS \ -D__STDC_FORMAT_MACROS @@ -58,11 +53,7 @@ CPPFLAGS+= -DLLVM_PREFIX=\"/usr\" .include "Makefile.arch" # upstream defaults -CFLAGS+= -ffunction-sections -.if ${MACHINE_ARCH} != "powerpc" -# XXX -CFLAGS+= -fdata-sections -.endif +CFLAGS+= -ffunction-sections -fdata-sections CXXFLAGS+= -std=c++14 CXXFLAGS+= -fvisibility-inlines-hidden CXXFLAGS+= -fno-exceptions -fno-rtti |