]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/make-syscalls.sh
* Makeconfig (sysd-rules-targets): New variable.
[thirdparty/glibc.git] / sysdeps / unix / make-syscalls.sh
index 0ec8b28fd21f8ac6c4e3bde45e5127a2735ec613..ca82e1f3311100d9028a44fa63371d2ee39bd8f7 100644 (file)
@@ -146,9 +146,8 @@ shared-only-routines += $file
     ;;
   *)
     echo "\
-\$(foreach o,\$(object-suffixes),\$(objpfx)$file\$o) \
-\$(foreach o,\$(object-suffixes),\$(objpfx)ptw-$file\$o) \
-\$(objpfx)rtld-$file.os: \\"
+\$(foreach p,\$(sysd-rules-targets),\
+\$(foreach o,\$(object-suffixes),\$(objpfx)\$(patsubst %,\$p,$file)\$o)): \\"
     ;;
   esac
 
@@ -216,7 +215,8 @@ shared-only-routines += $file
   done
 
   # And finally, pipe this all into the compiler.
-  echo '       ) | $(compile-syscall)'
+  echo '       ) | $(compile-syscall) '"\
+\$(foreach p,\$(patsubst %$file,%,\$(basename \$(@F))),\$(\$(p)CPPFLAGS))"
 
   case $weak in
   *@*)