mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-18 11:22:46 +12:00
build: fix warnings on OpenBSD with clang
- Don't use -fstack-clash-protection (argument unused during compilation) - Fix definition for ADDFLAGS/LDFLAGS for -lkvm Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
parent
fd2a2acdad
commit
1eb2b69a8e
11
Makefile
11
Makefile
|
@ -91,10 +91,13 @@ $(error $(shell printf "\033[1;91mERROR: \033[97mCompiler too old. (Requires Cla
|
|||
endif
|
||||
|
||||
#? Any flags added to TESTFLAGS must not contain whitespace for the testing to work
|
||||
override TESTFLAGS := -fexceptions -fstack-clash-protection -fcf-protection
|
||||
override TESTFLAGS := -fexceptions -fcf-protection
|
||||
ifneq ($(PLATFORM) $(ARCH),macos arm64)
|
||||
override TESTFLAGS += -fstack-protector
|
||||
endif
|
||||
ifneq ($(PLATFORM_LC) $(CXX_IS_CLANG),openbsd true)
|
||||
override TESTFLAGS += -fstack-clash-protection
|
||||
endif
|
||||
|
||||
ifeq ($(STATIC),true)
|
||||
ifeq ($(CXX_IS_CLANG) $(CLANG_WORKS),true true)
|
||||
|
@ -143,7 +146,11 @@ else ifeq ($(PLATFORM_LC),macos)
|
|||
else ifeq ($(PLATFORM_LC),openbsd)
|
||||
PLATFORM_DIR := openbsd
|
||||
THREADS := $(shell sysctl -n hw.ncpu || echo 1)
|
||||
override ADDFLAGS += -lkvm -static-libstdc++
|
||||
ifeq ($(CXX_IS_CLANG) $(CLANG_WORKS),true true)
|
||||
override LDFLAGS += -lkvm
|
||||
else
|
||||
override ADDFLAGS += -lkvm -static-libstdc++
|
||||
endif
|
||||
export MAKE = gmake
|
||||
SU_GROUP := wheel
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue