From 1d1fcd04ebac848accf27941e78e7eb6e3e315d6 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Tue, 2 Jan 2018 18:43:00 -0800 Subject: Add _FUNC aliases for newlib-2.5.0 I'm not sure what the policy actaully is here, but some newlib functions now have an extra underscore before them. This defines a bunch of aliases and some more wrappers to link against the correct newlib functions for 2.5.0 but maintain compatibility with 2.4.0. --- bsp/libwrap/libwrap.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'bsp/libwrap/libwrap.mk') diff --git a/bsp/libwrap/libwrap.mk b/bsp/libwrap/libwrap.mk index ce224ac..71bba3d 100644 --- a/bsp/libwrap/libwrap.mk +++ b/bsp/libwrap/libwrap.mk @@ -42,6 +42,7 @@ LIBWRAP := libwrap.a LINK_DEPS += $(LIBWRAP) LDFLAGS += $(foreach s,$(LIBWRAP_SYMS),-Wl,--wrap=$(s)) +LDFLAGS += $(foreach s,$(LIBWRAP_SYMS),-Wl,--wrap=_$(s)) LDFLAGS += -L. -Wl,--start-group -lwrap -lc -Wl,--end-group CLEAN_OBJS += $(LIBWRAP_OBJS) -- cgit v1.2.1-18-gbd029