mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
Makefile: do not try to strip inexisting file when stripping libpthread
libpthread.so has a special stripping condition to preserve parts of it that are needed for debugging. However, due to the usage of 'xargs' instead of 'xargs -r', the strip command is executed regardless of whether a libpthread.so file is found or not. This leads to a big error message being displayed in static-only builds, because strip is executed without a file argument. Thanks to the '|| true', the build continues, but still shows a big error message in the middle, which is not nice. By using 'xargs -r', we avoid the strip command from being executed when 'find' doesn't find any match. We also remove the '|| true' to catch other real errors. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
4ce8af8632
commit
52e7073a58
2
Makefile
2
Makefile
@ -494,7 +494,7 @@ endif
|
|||||||
# I set a breakpoint"
|
# I set a breakpoint"
|
||||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||||
find $(TARGET_DIR)/lib -type f -name 'libpthread*.so*' | \
|
find $(TARGET_DIR)/lib -type f -name 'libpthread*.so*' | \
|
||||||
xargs $(STRIPCMD) $(STRIP_STRIP_DEBUG) || true
|
xargs -r $(STRIPCMD) $(STRIP_STRIP_DEBUG)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
mkdir -p $(TARGET_DIR)/etc
|
mkdir -p $(TARGET_DIR)/etc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user