diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2011-07-19 10:41:50 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-28 19:18:49 (GMT) |
commit | 2469c4b2dbdd601a4e44ecf9925b99bd2cd1b43f (patch) | |
tree | 5039e8fb74f3a7ed0147f2a49771b07576d2bc2e /rules.mk | |
parent | 2901f8891d3d0a17b42c870947ab801d833d569e (diff) | |
download | u-boot-2469c4b2dbdd601a4e44ecf9925b99bd2cd1b43f.tar.xz |
rules.mk: replace GNU specific \w with POSIX equivalant
If sed does not support the GNU \w regex extension, build attempts
lead to circular dependency warnings and finally build failure
(crc32.c not found). Build output before and after the patch on
FreeBSD is at:
http://lists.denx.de/pipermail/u-boot/2011-June/095235.html
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,11 +29,11 @@ $(obj).depend: $(src)Makefile $(TOPDIR)/config.mk $(SRCS) $(HOSTSRCS) @rm -f $@ @touch $@ @for f in $(SRCS); do \ - g=`basename $$f | sed -e 's/\(.*\)\.\w/\1.o/'`; \ + g=`basename $$f | sed -e 's/\(.*\)\.[[:alnum:]_]/\1.o/'`; \ $(CC) -M $(CPPFLAGS) -MQ $(obj)$$g $$f >> $@ ; \ done @for f in $(HOSTSRCS); do \ - g=`basename $$f | sed -e 's/\(.*\)\.\w/\1.o/'`; \ + g=`basename $$f | sed -e 's/\(.*\)\.[[:alnum:]_]/\1.o/'`; \ $(HOSTCC) -M $(HOSTCPPFLAGS) -MQ $(obj)$$g $$f >> $@ ; \ done |