Message ID | 20240202122321.2273360-1-jwakely@redhat.com |
---|---|
State | New |
Headers | show |
Series | libstdc++: Fix libstdc++exp.a so it really does contain Filesystem TS symbols | expand |
On 02/02/24 12:14 +0000, Jonathan Wakely wrote: >This should fix the problem that libstdc++exp.a doesn't actually contain >the symbols from libstdc++fs.a, despite me claiming it did. > >This increases the size of libstdc++exp.a considerably, because now it >really does contain what I intended it to contain. We might be able to >avoid that increased on-disk footprint by replacing the installed >version of libstdc++fs.a with a linker script that does >INPUT(-lstdc++exp.a) but for now duplicating things seems OK. Vendors Oops, that should be INPUT(-lstdc++exp) obviously, without the .a extension. >can replace libstdc++fs.a with a linker script if they want to.
diff --git a/libstdc++-v3/src/experimental/Makefile.am b/libstdc++-v3/src/experimental/Makefile.am index 6241430988e..386e7442de4 100644 --- a/libstdc++-v3/src/experimental/Makefile.am +++ b/libstdc++-v3/src/experimental/Makefile.am @@ -25,7 +25,7 @@ include $(top_srcdir)/fragment.am toolexeclib_LTLIBRARIES = libstdc++exp.la if ENABLE_FILESYSTEM_TS -filesystem_lib = $(top_builddir)/src/filesystem/libstdc++fs.la +filesystem_lib = $(top_builddir)/src/filesystem/libstdc++fsconvenience.la else filesystem_lib = endif diff --git a/libstdc++-v3/src/filesystem/Makefile.am b/libstdc++-v3/src/filesystem/Makefile.am index 4bdbab38660..37cbfe1d00e 100644 --- a/libstdc++-v3/src/filesystem/Makefile.am +++ b/libstdc++-v3/src/filesystem/Makefile.am @@ -22,7 +22,10 @@ include $(top_srcdir)/fragment.am +# Separate libstdc++fs.a to be installed. toolexeclib_LTLIBRARIES = libstdc++fs.la +# Duplicate lib that is to be part of libstdc++exp.a +noinst_LTLIBRARIES = libstdc++fsconvenience.la headers = @@ -44,6 +47,7 @@ sources = \ # vpath % $(top_srcdir)/src/filesystem libstdc__fs_la_SOURCES = $(sources) +libstdc__fsconvenience_la_SOURCES = $(sources) # AM_CXXFLAGS needs to be in each subdirectory so that it can be # modified in a per-library or per-sub-library way. Need to manually