-# $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
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
.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