Merge "BuildSystem: Add NetBSD."

This commit is contained in:
Joshua Colp
2018-03-14 06:17:01 -05:00
committed by Gerrit Code Review
3 changed files with 22 additions and 2 deletions

View File

@@ -217,7 +217,9 @@ ifeq ($(AST_DEVMODE),yes)
endif
endif
ifneq ($(findstring BSD,$(OSARCH)),)
ifeq ($(OSARCH),NetBSD)
_ASTCFLAGS+=-isystem /usr/pkg/include
else ifneq ($(findstring BSD,$(OSARCH)),)
_ASTCFLAGS+=-isystem /usr/local/include
endif
@@ -284,7 +286,9 @@ else
# These are used for all but Darwin
SOLINK=-shared
DYLINK=$(SOLINK)
ifneq ($(findstring BSD,$(OSARCH)),)
ifeq ($(OSARCH),NetBSD)
_ASTLDFLAGS+=-L/usr/pkg/lib
else ifneq ($(findstring BSD,$(OSARCH)),)
_ASTLDFLAGS+=-L/usr/local/lib
endif
endif