This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
in elf/Makefile, GNU awk accepts this expression:
und(|ef)
but POSIX says that '|' occurring right after '(' or right before ')' produces
undefined results. a replacement expression is:
und(ef)?
attached patch makes this change.
-mike
Attachment:
signature.asc
Description: This is a digitally signed message part.
2007-12-24 Mike Frysinger <vapier@gentoo.org>
* elf/Makefile ($(objpfx)ld.so): Use POSIX (EF)? in awk.
--- libc/elf/Makefile
+++ libc/elf/Makefile
@@ -308,7 +308,7 @@ $(objpfx)ld.so: $(objpfx)librtld.os $(ld
-Wl,-soname=$(rtld-installed-name) -T $@.lds
rm -f $@.lds
readelf -s $@ \
- | $(AWK) '($$7 ~ /^UND(|EF)$$/ && $$1 != "0:" && $$4 != "REGISTER") { print; p=1 } END { exit p != 0 }'
+ | $(AWK) '($$7 ~ /^UND(EF)?$$/ && $$1 != "0:" && $$4 != "REGISTER") { print; p=1 } END { exit p != 0 }'
# interp.c exists just to get this string into the libraries.
CFLAGS-interp.c = -D'RUNTIME_LINKER="$(slibdir)/$(rtld-installed-name)"' \
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |