aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-28 17:54:52 +0000
committerRoland McGrath <roland@gnu.org>1996-05-28 17:54:52 +0000
commit215dbbb1508bd6b86211112dd5ddaf9bd2290690 (patch)
treedb84d11651cb64a91493de09306261e61698d622 /Makerules
parent13a0be88230585460587b749e6c7cccfc5339943 (diff)
downloadglibc-215dbbb1508bd6b86211112dd5ddaf9bd2290690.tar
glibc-215dbbb1508bd6b86211112dd5ddaf9bd2290690.tar.gz
glibc-215dbbb1508bd6b86211112dd5ddaf9bd2290690.tar.bz2
glibc-215dbbb1508bd6b86211112dd5ddaf9bd2290690.zip
Tue May 28 13:11:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* Makerules (sed-remove-objpfx): Avoid extra space in regexp due to continuation line. * sysdeps/unix/sysv/linux/i386/socket.S: Fix off-by-one error in setting %ecx to 2nd syscall arg: we have pushed nothing, so function args are found at 4(%esp), not 8(%esp).
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makerules b/Makerules
index f2c7a7d66d..15a0b0e7af 100644
--- a/Makerules
+++ b/Makerules
@@ -281,9 +281,11 @@ $(sed-remove-objpfx) > $(@:.d=.T)
mv -f $(@:.d=.T) $@
endef
ifneq (,$(objpfx))
-sed-remove-objpfx = -e 's@ $(subst .,\.,\
- $(subst @,\@,$(objpfx)))@ $$(objpfx)@g' \
- -e 's@^$(subst .,\.,$(subst @,\@,$(objpfx)))@$$(objpfx)@g'
+# Continuation lines here are dangerous because they introduce spaces!
+define sed-remove-objpfx
+-e 's@ $(subst .,\.,$(subst @,\@,$(objpfx)))@ $$(objpfx)@g' \
+-e 's@^$(subst .,\.,$(subst @,\@,$(objpfx)))@$$(objpfx)@g'
+endef
endif
# Figure out the source filenames in this directory.