mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-15 18:03:06 +12:00
correct makefile
This commit is contained in:
parent
cd644cfc55
commit
cd3fd1a529
9
Makefile
9
Makefile
|
@ -101,8 +101,8 @@ OBJEXT := o
|
|||
#? Flags, Libraries and Includes
|
||||
override REQFLAGS := -std=c++20
|
||||
WARNFLAGS := -Wall -Wextra -pedantic
|
||||
OPTFLAGS ?= -O0 -g # -ftree-loop-vectorize -flto=$(THREADS)
|
||||
LDCXXFLAGS := -pthread -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fexceptions -Wl,-rpath=/usr/local/lib/gcc11 -lstdc++ -lm -lkvm #-fstack-protector -fstack-clash-protection $(ADDFLAGS)
|
||||
OPTFLAGS ?= -O2 -ftree-loop-vectorize -flto=$(THREADS)
|
||||
LDCXXFLAGS := -pthread -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector -fstack-clash-protection $(ADDFLAGS)
|
||||
override CXXFLAGS += $(REQFLAGS) $(LDCXXFLAGS) $(OPTFLAGS) $(WARNFLAGS)
|
||||
override LDFLAGS += $(LDCXXFLAGS) $(OPTFLAGS) $(WARNFLAGS)
|
||||
INC := -I$(INCDIR) -I$(SRCDIR)
|
||||
|
@ -112,6 +112,11 @@ ifdef DEBUG
|
|||
override OPTFLAGS := -O0 -g
|
||||
endif
|
||||
|
||||
ifeq ($(PLATFORM_LC),freebsd)
|
||||
override LDCXXFLAGS += -lstdc++ -lm -lkvm -Wl,-rpath=/usr/local/lib/gcc11
|
||||
override OPTFLAGS := -O2
|
||||
endif
|
||||
|
||||
ifeq ($(PLATFORM), OSX)
|
||||
override LDCXXFLAGS += -framework IOKit -framework CoreFoundation
|
||||
override WARNFLAGS += -Wno-format-truncation
|
||||
|
|
Loading…
Reference in a new issue