1
# DP: Install host specific libstdc++ headers into the host include dir
3
2013-05-11 Matthias Klose <doko@ubuntu.com>
5
* include/Makefile.am (bits_headers): Remove ${bits_host_headers}.
6
(ext_headers): Remove ${ext_host_headers}.
7
(stamp-${host_alias}): Create ${host_builddir}/../ext.
8
(stamp-host): Link ${bits_host_headers} and ${ext_host_headers}.
9
(install-headers): Install ${bits_host_headers} and ${ext_host_headers}.
10
* include/Makefile.in: Regenerate.
12
Index: libstdc++-v3/include/Makefile.am
13
===================================================================
14
--- a/src/libstdc++-v3/include/Makefile.am (revision 198799)
15
+++ a/src/libstdc++-v3/include/Makefile.am (working copy)
17
${bits_srcdir}/valarray_array.tcc \
18
${bits_srcdir}/valarray_before.h \
19
${bits_srcdir}/valarray_after.h \
20
- ${bits_srcdir}/vector.tcc \
21
- ${bits_host_headers}
22
+ ${bits_srcdir}/vector.tcc
25
${glibcxx_srcdir}/${CPU_OPT_BITS_RANDOM}
27
${ext_srcdir}/vstring.tcc \
28
${ext_srcdir}/vstring_fwd.h \
29
${ext_srcdir}/vstring_util.h \
30
- ${ext_compat_headers} \
32
+ ${ext_compat_headers}
34
ext_compat_headers = \
35
${backward_srcdir}/hash_set \
36
@@ -1048,13 +1046,14 @@
39
@-mkdir -p ${host_builddir}
40
+ @-mkdir -p ${host_builddir}/../ext
41
@$(STAMP) stamp-${host_alias}
43
# Host includes static.
44
# XXX Missing dependency info for {host_headers_extra}
45
-stamp-host: ${host_headers} ${host_headers_noinst} stamp-${host_alias}
46
+stamp-host: ${host_headers} ${bits_host_headers} ${ext_host_headers} ${host_headers_noinst} stamp-${host_alias}
47
@cd ${host_builddir} && {\
48
- $(LN_S) ${host_headers} . || true ;\
49
+ $(LN_S) ${host_headers} ${bits_host_headers} . || true ;\
50
$(LN_S) ${glibcxx_srcdir}/$(BASIC_FILE_H) basic_file.h || true ;\
51
$(LN_S) ${glibcxx_srcdir}/$(ALLOCATOR_H) c++allocator.h || true ;\
52
$(LN_S) ${glibcxx_srcdir}/$(CSTDIO_H) c++io.h || true ;\
54
$(LN_S) ${glibcxx_srcdir}/$(CMESSAGES_H) messages_members.h || true ;\
55
$(LN_S) ${glibcxx_srcdir}/$(CTIME_H) time_members.h || true;\
57
+ @cd ${host_builddir}/../ext && {\
58
+ $(LN_S) ${ext_host_headers} . || true ;\
62
# Host includes dynamic.
63
@@ -1290,9 +1292,12 @@
64
for file in ${profile_impl_headers}; do \
65
$(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${profile_impl_builddir}; done
66
$(mkinstalldirs) $(DESTDIR)${host_installdir}
67
- for file in ${host_headers} ${host_headers_extra} \
68
+ for file in ${host_headers} ${bits_host_headers} ${host_headers_extra} \
69
${thread_host_headers}; do \
70
$(INSTALL_DATA) $${file} $(DESTDIR)${host_installdir}; done
71
+ $(mkinstalldirs) $(DESTDIR)${host_installdir}/../ext
72
+ for file in ${ext_host_headers}; do \
73
+ $(INSTALL_DATA) $${file} $(DESTDIR)${host_installdir}/../ext; done
75
# By adding these files here, automake will remove them for 'make clean'
76
CLEANFILES = ${pch_output} ${pch_output_anchors} stamp-host
77
Index: libstdc++-v3/include/Makefile.in
78
===================================================================
79
--- a/src/libstdc++-v3/include/Makefile.in (revision 198799)
80
+++ a/src/libstdc++-v3/include/Makefile.in (working copy)
82
${bits_srcdir}/valarray_array.tcc \
83
${bits_srcdir}/valarray_before.h \
84
${bits_srcdir}/valarray_after.h \
85
- ${bits_srcdir}/vector.tcc \
86
- ${bits_host_headers}
87
+ ${bits_srcdir}/vector.tcc
90
${glibcxx_srcdir}/${CPU_OPT_BITS_RANDOM}
92
${ext_srcdir}/vstring.tcc \
93
${ext_srcdir}/vstring_fwd.h \
94
${ext_srcdir}/vstring_util.h \
95
- ${ext_compat_headers} \
97
+ ${ext_compat_headers}
99
ext_compat_headers = \
100
${backward_srcdir}/hash_set \
101
@@ -1461,13 +1459,14 @@
104
@-mkdir -p ${host_builddir}
105
+ @-mkdir -p ${host_builddir}/../ext
106
@$(STAMP) stamp-${host_alias}
108
# Host includes static.
109
# XXX Missing dependency info for {host_headers_extra}
110
-stamp-host: ${host_headers} ${host_headers_noinst} stamp-${host_alias}
111
+stamp-host: ${host_headers} ${bits_host_headers} ${ext_host_headers} ${host_headers_noinst} stamp-${host_alias}
112
@cd ${host_builddir} && {\
113
- $(LN_S) ${host_headers} . || true ;\
114
+ $(LN_S) ${host_headers} ${bits_host_headers} . || true ;\
115
$(LN_S) ${glibcxx_srcdir}/$(BASIC_FILE_H) basic_file.h || true ;\
116
$(LN_S) ${glibcxx_srcdir}/$(ALLOCATOR_H) c++allocator.h || true ;\
117
$(LN_S) ${glibcxx_srcdir}/$(CSTDIO_H) c++io.h || true ;\
118
@@ -1477,6 +1476,9 @@
119
$(LN_S) ${glibcxx_srcdir}/$(CMESSAGES_H) messages_members.h || true ;\
120
$(LN_S) ${glibcxx_srcdir}/$(CTIME_H) time_members.h || true;\
122
+ @cd ${host_builddir}/../ext && {\
123
+ $(LN_S) ${ext_host_headers} . || true ;\
127
# Host includes dynamic.
128
@@ -1688,9 +1690,12 @@
129
for file in ${profile_impl_headers}; do \
130
$(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${profile_impl_builddir}; done
131
$(mkinstalldirs) $(DESTDIR)${host_installdir}
132
- for file in ${host_headers} ${host_headers_extra} \
133
+ for file in ${host_headers} ${bits_host_headers} ${host_headers_extra} \
134
${thread_host_headers}; do \
135
$(INSTALL_DATA) $${file} $(DESTDIR)${host_installdir}; done
136
+ $(mkinstalldirs) $(DESTDIR)${host_installdir}/../ext
137
+ for file in ${ext_host_headers}; do \
138
+ $(INSTALL_DATA) $${file} $(DESTDIR)${host_installdir}/../ext; done
140
# To remove directories.