include/prereq-build: fix ldconfig-stub symlink on macos and BSD OSs
Some OS may have the true bin to a different location than /bin/true. BSD based system and macos have true on /usr/bin/true. Fix this by checking both location and take the one available in the system. Reported-by: Sergey V. Lobanov <sergey@lobanov.in> Suggested-by: Huangbin Zhan <zhanhb88@gmail.com> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
		@@ -213,4 +213,4 @@ prereq: $(STAGING_DIR_HOST)/bin/mkhash $(STAGING_DIR_HOST)/bin/xxd
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Install ldconfig stub
 | 
					# Install ldconfig stub
 | 
				
			||||||
$(eval $(call TestHostCommand,ldconfig-stub,Failed to install stub, \
 | 
					$(eval $(call TestHostCommand,ldconfig-stub,Failed to install stub, \
 | 
				
			||||||
	$(LN) /bin/true $(STAGING_DIR_HOST)/bin/ldconfig))
 | 
						$(LN) $(firstword $(wildcard /bin/true /usr/bin/true)) $(STAGING_DIR_HOST)/bin/ldconfig))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user