This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Make obsolete syscall wrappers into compat symbols (bug 18472)
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Fri, 11 Dec 2015 12:21:30 +0100
- Subject: Re: Make obsolete syscall wrappers into compat symbols (bug 18472)
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1512042226210 dot 26186 at digraph dot polyomino dot org dot uk>
Joseph Myers <joseph@codesourcery.com> writes:
> diff --git a/sysdeps/unix/Makefile b/sysdeps/unix/Makefile
> index 1770d1d..9faa669 100644
> --- a/sysdeps/unix/Makefile
> +++ b/sysdeps/unix/Makefile
> @@ -59,8 +59,20 @@ $(objpfx)stub-syscalls.c: $(common-objpfx)sysd-syscalls \
> *@*) \
> ver=$${call##*@}; call=$${call%%@*}; \
> ver=`echo "$$ver" | sed 's/\./_/g'`; \
> + case $$ver in \
> + *:*) \
> + compat_ver=$${ver#*:}; \
> + ver=$${ver%%:*}; \
> + compat_cond="SHLIB_COMPAT (libc, $$ver, $$compat_ver)"; \
> + ;; \
> + *) \
> + compat_cond=""; \
> + ;; \
> + esac; \
> + if [ "$$compat_cond" ]; then echo "#if $$compat_cond"; fi; \
Ok, but please use -n "...".
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."