Build/Makefile question
Caroline Tice
cmtice@google.com
Fri Oct 26 22:26:00 GMT 2012
Ok, here are the patches for the Makefile.am and Makefile.in files. I
am also having trouble with the following issue: I need to make sure
that one of the new libraries is linked in with libstdc++ when
libstdc++ gets built. I have not been able to successfully figure out
where exactly is the command that builds & links libstdc++.so.* (yes
I've looked at the build; it's being built with libtool somewhere,
somehow, and no matter where/how I specify the link flag to link in my
new library, the libtool link command is not picking it up).
-- Caroline Tice
cmtice@google.com
On Fri, Oct 26, 2012 at 2:28 PM, Ian Lance Taylor <iant@google.com> wrote:
> On Fri, Oct 26, 2012 at 10:58 AM, Caroline Tice <cmtice@google.com> wrote:
>>
>> I am working on a patch (which I hope to be able to submit in the next
>> few days), and I have run into a snag that I am hoping someone can
>> help me with.
>>
>> As part of this patch, I am trying to build two new *.a (static
>> archive) libraries in libstdc++-v3/libsupc++. I have modified
>> Makefile.am and rebuilt Makefile.in in libsupc++ to do this. I had
>> this working just fine on GCC 4.6.3, but when I try to apply the
>> changes to GCC ToT, I find that something in the build system seems to
>> have changed: Not only is it building the two static archive
>> libraries, it is ALSO then building two dynamic shared libraries (*.so
>> files), which I do NOT want. And even worse, it's putting the wrong
>> stuff into the .so files. I have not been able to find/isolate the
>> code that is telling GCC to go build the .so files. As I said, this
>> worked for me in GCC 4.6.3. Does anybody know what might be going
>> wrong or where/how to fix this? Help, please??
>
> Kind of hard to say without seeing the patch. Look at the build log,
> and make sure that libtool is being invoked with --tag disable-shared.
> That should be all that is required.
>
> Ian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.am.diff
Type: application/octet-stream
Size: 2345 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20121026/de8bc684/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.in.diff
Type: application/octet-stream
Size: 5317 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20121026/de8bc684/attachment-0001.obj>
More information about the Gcc
mailing list