musl-cross icon indicating copy to clipboard operation
musl-cross copied to clipboard

gcc installs unnecessary libs

Open rofl0r opened this issue 10 years ago • 3 comments

for example libiberty.a this may cause build error of other gnu sw using libiberty when they expect another version (the one in their source tree, which only gets build when libiberty is not already installed), and wastes space.

some other things like libatomic can possibly be removed as well.

rofl0r avatar Jul 22 '14 00:07 rofl0r

@rofl0r: Is building the first & second pass of gcc with --disable-target-libiberty suitable to fix your libiberty.a concern? I notice that the first pass of gcc does install a libiberty.a but then the second pass seems to update that file. Is also building the second pass of gcc with --disable-libatomic suitable to fix your libatomic concern? Are the atomic operations provided by musl suitable to make libatomic not needed? (I honestly don't know enough to answer this)

bradfa avatar Jan 29 '15 20:01 bradfa

It seems that now, master at 09bb1b927f9cf78194d0f198ebec17cf1640b7be when building with gcc 4.9.2 that libiberty.a does not get created. libatomic is still there. Did the GCC devs fix this or am I missing something?

bradfa avatar Jan 29 '15 21:01 bradfa

I sure haven't fixed anything :)

GregorR avatar Jan 29 '15 21:01 GregorR