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]

Re: sysd-rules generation doesn't allow non-invasive addition of addon rules


On Jan 29, 2008, Roland McGrath <roland@redhat.com> wrote:

> Please try what I just committed.

This broke rtld-* syscalls, sysdeps/unix/make-syscalls.sh doesn't pass
the flags in $(rtld-CPPFLAGS) to the assembly preprocessor any more.

This kludge seems to fix it, but I'm not quite happy about it.  Any
better ideas?

for  ChangeLog
2008-01-31  Alexandre Oliva  <aoliva@redhat.com>

	* sysdeps/unix/make-syscalls.sh: Add rtld-CPPFLAGS as needed.

Index: sysdeps/unix/make-syscalls.sh
===================================================================
--- sysdeps/unix/make-syscalls.sh.orig	2003-08-16 03:13:21.000000000 -0300
+++ sysdeps/unix/make-syscalls.sh	2008-01-31 04:35:55.000000000 -0200
@@ -216,7 +216,7 @@ shared-only-routines += $file
   done
 
   # And finally, pipe this all into the compiler.
-  echo '	) | $(compile-syscall)'
+  echo '	) | $(compile-syscall) $(if $(filter rtld-%,$(@F)),$(rtld-CPPFLAGS))'
 
   case $weak in
   *@*)

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member         http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]