fix endian sed as pointed out by David Anders
authorMike Frysinger <vapier@gentoo.org>
Wed, 18 Jan 2006 12:04:50 +0000 (12:04 -0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 18 Jan 2006 12:04:50 +0000 (12:04 -0000)
toolchain/uClibc/uclibc.mk

index 681302d81115fdcc65914c2e07a7ae4f756587ec..700b9d618e8d30997601f611493963702bb77ac3 100644 (file)
@@ -79,8 +79,8 @@ $(UCLIBC_DIR)/.configured: $(UCLIBC_DIR)/.unpacked
                -e 's,^SHARED_LIB_LOADER_PREFIX=.*,SHARED_LIB_LOADER_PREFIX=\"/lib\",g' \
                $(UCLIBC_DIR)/.config
 ifneq ($(UCLIBC_TARGET_ENDIAN),)
-       $(SED) '/^# ARCH_$(UCLIBC_TARGET_ENDIAN)_ENDIAN /s,# ,,;s, is not set,=y,g' \
-               -e '/^# ARCH_$(UCLIBC_NOT_TARGET_ENDIAN)_ENDIAN /s,# ,,;s, is not set,=n,' \
+       $(SED) '/^# ARCH_$(UCLIBC_TARGET_ENDIAN)_ENDIAN /{s,# ,,;s, is not set,=y,g}' \
+               -e '/^# ARCH_$(UCLIBC_NOT_TARGET_ENDIAN)_ENDIAN /{s,# ,,;s, is not set,=n,g}' \
                $(UCLIBC_DIR)/.config
 endif
 ifeq ($(BR2_LARGEFILE),y)