Your message dated Mon, 4 Aug 2014 11:49:48 +0200
with message-id <[email protected]>
and subject line Re: [PATCH] libmount/buildsys: move SELINUX_LIBS to LDFLAGS
has caused the Debian Bug report #721431,
regarding util-linux failed to cross build with selinux
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
721431: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=721431
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: util-linux
In libmount/src/Makefile.am
libmount_la_LIBADD = $(ul_libblkid_la) $(SELINUX_LIBS)
libmount_la_DEPENDENCIES = $(libmount_la_LIBADD) libmount.sym libmount.h.in
While $(SELINUX_LIBS) is '-lselinux -lsepol'
They are not files or makefile tag, so cannot build-depends on.
--
YunQiang Su
--- End Message ---
--- Begin Message ---
Version: 2.25-1
Hello Mike!
Thank you very much for the followup and for identifying the relevant
commit for me!
(BCCing the debian bug tracking system to close the bug report...)
On Mon, Aug 04, 2014 at 03:40:56AM -0400, Mike Frysinger wrote:
[...]
> the problem is that libmount_la_DEPENDENCIES shows up in the Makefile like:
> libmount.la: ... $(libmount_la_DEPENDENCIES) ...
>
> which means make evaluates it like so:
> libmount.la: ... -lselinux -lsepol ...
>
> which triggers the builtin library path searching of make itself:
> https://www.gnu.org/software/make/manual/make.html#Libraries_002fSearch
>
> which means it'll rewrite -lselinux into /usr/lib/libselinux.so (if it can
> find it) which is bad for multilib and cross-compiling.
>
> the easy answer is to not add LIBADD to DEPENDENCIES. which has been done
> already -- see dbf7043ea1d090d283cfd36280bb14189d8e35b1.
>
[...]
Regards,
Andreas Henriksson
--- End Message ---