Need help buiding bfd shared library
Potharla, Rupesh
Rupesh.Potharla@amd.com
Wed Aug 3 18:59:06 GMT 2022
[Public]
>On 03.08.2022 08:49, Potharla, Rupesh wrote:
>>> On 03.08.2022 08:09, Potharla, Rupesh via Binutils wrote:
>>>> I am working on building bfd shared library for my code changes. I
>>>> tried with
>>> "configure --enable-shared=bfd" but BFD is creating static library
>>> only even with -enable-shared option . Did I miss something ? Can
>>> someone help me with the instructions to build bfd shared library?
>>>
>>> Did you try --enable-shared without "=bfd"? So far I wasn't aware of
>>> that form as an option, and at least a quick inspection of the
>>> configure script also doesn't suggest that form might exist. But I may be
>entirely wrong ...
>>
>> I tried that option as well and tried with --enable-host-shared combination
>also but no luck.
>
>You may want to inspect configure output then. Here in bfd/config.log I see
>
>configure:8674: checking whether the gcc -std=gnu99 linker
>(/usr/lib/gcc/.../ld) supports shared libraries
>configure:9745: result: yes
>...
>configure:11365: checking if libtool supports shared libraries
>configure:11367: result: yes
>configure:11370: checking whether to build shared libraries
>configure:11391: result: yes
>configure:11394: checking whether to build static libraries
>configure:11398: result: yes
>
>I would guess one of these is failing for you, at which point you'd want to
>figure out why that is.
None of the above is failing for me. I looked at the config.log file and tried the combination of different options none of them is working. In fact, I don't see a target for libbfd.so in the Makefile.
configure:11283: checking whether stripping libraries is possible
configure:11288: result: yes
configure:11323: checking if libtool supports shared libraries
configure:11325: result: yes
configure:11328: checking whether to build shared libraries
configure:11349: result: yes
configure:11352: checking whether to build static libraries
configure:11356: result: yes
configure:8563: checking for dlfcn.h
configure:8563: result: yes
Just out of curiosity is the --enable-shared option really working for others? Am I missing something during the compilation?
Regards,
Rupesh P
More information about the Binutils
mailing list