Bug 8301 - ldconfig parameter in Makefile
Summary: ldconfig parameter in Makefile
Status: RESOLVED WONTFIX
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2015.05
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-17 17:16 UTC by Nestor
Modified: 2015-08-24 20:18 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nestor 2015-08-17 17:16:15 UTC
The ldconfig invocation on the top Makefile seems to be wrong.
At line 586 the parameter "-r" first set the new root and then the command tries to open the new config file, but at the wrong place:

/sbin/ldconfig -r $(TARGET_DIR) \
               -f $(TARGET_DIR)/etc/ld.so.conf;

The above command will always report a file not found, so it must be fixed to:

/sbin/ldconfig -r $(TARGET_DIR) \
               -f /etc/ld.so.conf;

The same applies to line 583.
Comment 1 Thomas Petazzoni 2015-08-24 20:18:19 UTC
No, using /etc/ld.so.conf to generate the ld.so cache for the target is completely wrong. The proper fix is to completely get rid of the ldconfig stuff in Buildroot, since it cannot work properly in a cross-compiled environment.