It is ignored, but I don't know where.
This is GNU make so LDFLAGS is part of implicit rules. I suppose that
some default rules don't apply here as they are re-defined elsewhere
without LDFLAGS. The makefile chain is rather big and I could not find
the rules at play here.
`make --debug` can
I can't get around this issue, it's strange...
I tried patching the Makefile to no avail. In fact, switching to the
build dir and running
make
LDFLAGS=-Wl,-rpath=/gnu/store/bjzsjkgd0dz9l0liva0axqqifakrrb67-lvm2-2.02.177/lib
does not change the RPATH of the resulting library. Am I
Pierre Neidhardt skribis:
>> Could you paste the excerpt from that log that shows the command that
>> produced libdevmapper-event-lvm2mirror.so?
>>
>> It may be a matter of adding -ldevmapper to that command (which in turn
>> will lead ld-wrapper to add the right -Wl,-rpath flag.)
>
> Done, here
> Could you paste the excerpt from that log that shows the command that
> produced libdevmapper-event-lvm2mirror.so?
>
> It may be a matter of adding -ldevmapper to that command (which in turn
> will lead ld-wrapper to add the right -Wl,-rpath flag.)
Done, here is the result:
Pierre Neidhardt skribis:
>> Could you paste the excerpt from that log that shows the command that
>> produced libdevmapper-event-lvm2mirror.so?
>
> gcc -shared -Wl,-soname,libdevmapper-event-lvm2mirror.so.2.02 \
> -O2 -fPIC -L../../../../daemons/dmeventd/plugins/lvm2
>
2-2.02.177/lib/device-mapper/libdevmapper-event-lvm2mirror.so:
> error: depends on 'libdevmapper-event-lvm2.so.2.02', which cannot be found
> in RUNPATH
> ("/gnu/store/n6acaivs0jwiwpidjr551dhdni5kgpcr-glibc-2.26.105-g0890d5379c/lib"
> "/gnu/store/xfjba1kww8n
unpath'
validating RUNPATH of 8 binaries in
"/gnu/store/gh7rda7y5nfh7v5njlll45ckbm4aigmd-lvm2-2.02.177/lib"...
/gnu/store/gh7rda7y5nfh7v5njlll45ckbm4aigmd-lvm2-2.02.177/lib/device-mapper/libdevmapper-event-lvm2mirror.so:
error: depends on 'libdevmapper-event-lvm2.so.2.02', which canno
;
> "…/other/lib.so depends on 'libDiscoverCommon.so', which cannot be found
> in RUNPATH".
>
> I checked the RUNPATH shown in this error-message and it includes the
> correct output of this package. But the RUNPATH only includes "…/lib",
> not "…/lib/plasma&quo
Hi guix!
I have a package installing a lib as …/lib/plasma/libDiscoverCommon.so
and a second lib as …/lib/other/lib.so.
Building and linking works fine, but phase `validate-runpath' fails with:
"…/other/lib.so depends on 'libDiscoverCommon.so', which cannot be found
in RUNPATH".