1) Explicitly setting the default lib to the system-default is not
needed on a Mac. See:
http://libcxx.llvm.org/docs/UsingLibcxx.html
2) We do no longer need to exclude bmi2-builds from LTO. See:
https://llvm.org/bugs/show_bug.cgi?id=19416
Changes tested and discussed on FishCooking:
https://groups.google.com/forum/?fromgroups=#!topic/fishcooking/acUQtKtEzMM
No functional change.
CXXFLAGS += -m$(bits)
LDFLAGS += -m$(bits)
endif
-
- ifeq ($(KERNEL),Darwin)
- CXXFLAGS += -stdlib=libc++
- DEPENDFLAGS += -stdlib=libc++
- endif
endif
ifeq ($(comp),icc)
ifeq ($(comp),clang)
ifeq ($(KERNEL),Darwin)
- ifeq ($(pext),no)
CXXFLAGS += -flto
LDFLAGS += $(CXXFLAGS)
- endif
ifeq ($(arch),i386)
CXXFLAGS += -mdynamic-no-pic
endif