Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: prepare for newer binutils #344

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ LDGEN ?= $(CC)
CFLAGS += -I.
CPPFLAGS += -DVERSION=\"$(VERSION)\"

# binutils >= 2.39 required
LD_VERSION_MINOR := $(shell $(LD) $(LDFLAGS_PREFIX)--version 2> /dev/null | grep -Eo "[0-9][0-9]$$")
ifeq ($(shell expr $(LD_VERSION_MINOR) ">=" 39), 1)
LDFLAGS += $(LDFLAGS_PREFIX)--no-warn-rwx-segments
endif

OBJS :=
# hal Makefile needs to be included first as it adds cmds and devices definitions
include hal/$(TARGET_SUFF)/Makefile
Expand Down
Loading