~vcs-imports/eglibc/trunk

« back to all changes in this revision

Viewing changes to libc/sysdeps/unix/sysv/linux/Makefile

  • Committer: joseph
  • Date: 2013-08-20 16:23:48 UTC
  • Revision ID: svn-v4:7b3dc134-2b1b-0410-93df-9e9f96275f8d:trunk:23785
Merge changes between r23517 and r23715 from /fsf/trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
# be the condition for those options to use in a C #if condition.
51
51
# abi-includes may be defined to a list of headers to include
52
52
# in the generated header, if the default does not suffice.
 
53
#
 
54
# The generated header is compiled with `-ffreestanding' to avoid any
 
55
# circular dependencies against the installed implementation headers.
 
56
# Such a dependency would require the implementation header to be
 
57
# installed before the generated header could be built (See bug 15711).
 
58
# In current practice the generated header dependencies do not include
 
59
# any of the implementation headers removed by the use of `-ffreestanding'.
53
60
 
54
61
$(objpfx)bits/syscall%h $(objpfx)bits/syscall%d: ../sysdeps/unix/sysv/linux/sys/syscall.h
55
62
        $(make-target-directory)
64
71
         echo ''; \
65
72
         $(if $(abi-variants), \
66
73
         $(foreach v,$(abi-variants),\
67
 
         $(CC) -E -MD -MP -MF $(@:.h=.d)-t$(v) -MT '$(@:.d=.h) $(@:.h=.d)' \
 
74
         $(CC) -ffreestanding -E -MD -MP -MF $(@:.h=.d)-t$(v) -MT '$(@:.d=.h) $(@:.h=.d)' \
68
75
               -x c $(sysincludes) $< $(abi-$(v)-options) \
69
76
               -D_LIBC -dM | \
70
77
         sed -n 's@^#define __NR_\([^ ]*\) .*$$@#define SYS_\1 __NR_\1@p' | \
75
82
         $(if $(abi-$(v)-condition),echo '#endif';) \
76
83
         rm -f $(@:.d=.h).new$(v); \
77
84
         ), \
78
 
         $(CC) -E -MD -MP -MF $(@:.h=.d)-t$(v) -MT '$(@:.d=.h) $(@:.h=.d)' \
 
85
         $(CC) -ffreestanding -E -MD -MP -MF $(@:.h=.d)-t$(v) -MT '$(@:.d=.h) $(@:.h=.d)' \
79
86
               -x c $(sysincludes) $< \
80
87
               -D_LIBC -dM | \
81
88
         sed -n 's@^#define __NR_\([^ ]*\) .*$$@#define SYS_\1 __NR_\1@p' | \