adjust makefile target-specific CFLAGS rules to be more robust & complete
authorRich Felker <dalias@aerifal.cx>
Sun, 25 Mar 2018 02:47:36 +0000 (22:47 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 25 Mar 2018 02:47:36 +0000 (22:47 -0400)
commitc7bb9c41d2e62b7ad1c7858d4d0f2873642e634b
treeabf92396ce85eb2dd392f8c3cec06bcfd84df5d3
parenta7c53e0c2cd8fc45eac90c0468e44697019ceda6
adjust makefile target-specific CFLAGS rules to be more robust & complete

previously, MEMOPS_SRCS failed to include arch-specific replacement
files for memcpy, etc., omitting CFLAGS_MEMOPS and thereby potentially
causing build failure if an arch provided C (rather than asm)
replacements for these files.

instead of trying to explicitly include all the files that might have
arch replacements, which is prone to human error, extract final names
to be used out of $(LIBC_OBJS), where the rules for arch replacements
have already been applied. do the same for NOSSP_OBJS, using CRT_OBJS
and LDSO_OBJS rather than repeating ourselves with $(wildcard...) and
explicit pathnames again.
Makefile