Skip to content

Commit

Permalink
fix build error on openbsd arm64 (raspberry pi)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimying authored and sreimers committed Mar 24, 2022
1 parent c7599c1 commit 3de1984
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ if(UNIX)
-DHAVE_STRINGS_H
-DHAVE_SYS_TIME_H
-DHAVE_UNAME
-DHAVE_SELECT_H
)
endif()

Expand Down
7 changes: 2 additions & 5 deletions mk/re.mk
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,9 @@ CXXDFLAGS = -MD -MF $(@:.o=.d) -MT $@
ifeq ($(CC),)
CC := gcc
endif
ifeq ($(CC),cc)
CC := gcc
endif
LD := $(CC)

CC_LONGVER := $(shell $(CC) - --version|head -n 1)
CC_LONGVER := $(shell $(CC) --version|head -n 1)
CC_SHORTVER := $(shell $(CC) -dumpversion)
CC_MAJORVER := $(shell echo $(CC_SHORTVER) |\
sed -E 's/([0-9]+).[0-9]+.[0-9]+/\1/g')
Expand Down Expand Up @@ -392,7 +389,7 @@ endif

endif

ifneq ($(strip $(filter __arm64__ ,$(PREDEF))),)
ifneq ($(strip $(filter __arm64__ __aarch64__,$(PREDEF))),)
ARCH := arm64
endif

Expand Down

0 comments on commit 3de1984

Please sign in to comment.