Skip to content

Commit

Permalink
fixup! native: fix C++ for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jul 28, 2020
1 parent 5befda3 commit 76b9a8c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions boards/native/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ ifeq ($(OS_ARCH),x86_64)
endif
ifeq ($(OS),FreeBSD)
ifeq ($(OS_ARCH),amd64)
ifeq ($(DISABLE_LIBSTDCPP),1)
LINKFLAGS += -nodefaultlibs -lgcc_s -lc -lc++ -lm -lpthread
ifeq (,$(filter libstdcpp,$(FEATURES_USED)))
ifneq (,$(filter cpp,$(FEATURES_USED)))
LINKFLAGS += -nodefaultlibs -lgcc_s -lc -lc++ -lm -lpthread
endif
endif
LINKFLAGS += -m32 -DCOMPAT_32BIT -L/usr/lib32 -B/usr/lib32
endif
Expand Down

0 comments on commit 76b9a8c

Please sign in to comment.