Makefile: don't bother with .gnu.warning, just generate empty stubs

This commit is contained in:
Ash Logan 2019-04-23 21:04:28 +10:00
parent d542fdc438
commit f49667591d

View File

@ -140,9 +140,7 @@ lib/libwutd.a : $(SOURCES) $(INCLUDES) | lib debug
# temp: Deprecation stub for directly linking cafe libs (all in libwut)
lib/stubs/lib%.a: | lib/stubs release
@echo stub $(notdir $*)
@echo "static const char w[] __attribute__((section(\".gnu.warning\"))) = \"Deprecation: Linking to Cafe libraries (-l$*) is no longer needed, and will be removed in future. Please update your build.\";" > release/$*.stub.c
@$(CC) $(MACHDEP) -Wno-unused-variable -c release/$*.stub.c -o release/$*.stub.o $(ERROR_FILTER)
@$(AR) -rc $@ release/$*.stub.o
@$(AR) -rc $@
#---------------------------------------------------------------------------------
clean: