[meta-freescale] Help with redundant RPATH /usr/lib

Lewis, Nick nick.lewis at usa.g4s.com
Tue Apr 23 04:10:05 PDT 2013


>If that isn't the reason, its likely you're doing something custom to the linking command in configure.ac or Makefile.am and breaking it.

Richard

I have added a patch to the recipe that appears to fix the problem. Is this a reasonable approach to the issue?

$ cat sources/meta-nick/recipes-nick/xar/xar-1.5.2/xar-rpath.patch
--- a/src/Makefile.inc.in       2013-04-17 18:03:12.704735379 -0700
+++ b/src/Makefile.inc.in       2013-04-17 17:52:41.684668367 -0700
@@ -54,7 +54,11 @@
 @objroot at src/i% : @objroot at src/%.o $(LIBXAR)
        @mkdir -p $(@D)
 ifneq ($(words "" @RPATH@), 1)
+ ifeq (/usr/lib, $(LIBDIR))
+       $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LIBXAR) @LIBS@
+ else
        $(CC) $(CFLAGS) -o $@ $< @RPATH@$(LIBDIR) $(LDFLAGS) $(LIBXAR) @LIBS@
+ endif
 else
        $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LIBXAR) @LIBS@
 endif


--
Nick

The details of this company are as follows:
G4S Technology Limited, Registered Office: Challenge House, International Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in England No. 2382338.

This communication may contain information which is confidential, personal and/or privileged.

It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please note that any distribution, forwarding, copying or use of this communication or the information in it is strictly prohibited.

Any personal views expressed in this e-mail are those of the individual sender and the company does not endorse or accept responsibility for them.

Prior to taking any action based upon this e-mail message, you should seek appropriate confirmation of its authenticity.

This e-mail has been scanned for all viruses by MessageLabs.


More information about the meta-freescale mailing list