[Debian-med-packaging] Bug#841671: Bug#841671: pbbam: Fix for building with -Wl, --as-needed

Afif Elghraoui afif at debian.org
Sun Oct 23 21:10:20 UTC 2016


Hi, Steve,

على الجمعـة 21 تشرين الأول 2016 ‫16:28، كتب Steve Langasek:
> 
> Hi Afif,
> 
> In Ubuntu, pbbam was failing to build because when linking libpbbam.so, the
> library arguments were listed on the commandline before the objects being
> linked.  Ubuntu uses -Wl,--as-needed in its linker arguments, which causes
> libraries that aren't used to be ignored; and so libraries listed before the
> objects that use them are not linked against.
> 
> You can read more about this behavior here:
> 
>   https://wiki.ubuntu.com/ToolChain/CompilerFlags#Flags_passed_to_the_linker
> 
> I've applied a small patch in Ubuntu to fix this, with the following
> changelog explanation:
> 
>   * debian/rules: fix cmake arguments so that library arguments are in the
>     right order for -Wl,--as-needed.
> 
> While Debian does not currently use -Wl,--as-needed by default and this is
> not a build issue in Debian, applying this patch will make your package more
> portable in general.  Please consider applying it.
> 

Thanks for your report and patch. I definitely have no problem applying
it. I'll upload after testing the build.

Many thanks and regards
Afif

-- 
Afif Elghraoui | عفيف الغراوي
http://afif.ghraoui.name



More information about the Debian-med-packaging mailing list