Source: libtraceevent
Version: 1:1.9.0-2
Tags: patch upstream
User: [email protected]
Usertags: armhf
User: [email protected]
Usertags: ftcbfs

libtraceevent fails to cross build from source for armhf. I'm not sure
why it only appears to affect arm as the root cause resides in the build
architecture nm being used when the host one should have been. I'm
attaching a patch for your convenience.

Helmut
--- libtraceevent-1.9.0.orig/scripts/utils.mk
+++ libtraceevent-1.9.0/scripts/utils.mk
@@ -183,5 +183,5 @@
 
 # Make all global functions that do not start with "tep_" have a unique name.
 redefine_local = \
-	$(shell nm $(2) 2>/dev/null | grep '[0-9a-f] t ' > .tmp.func-list; for f in a `nm $(1) 2>/dev/null | grep ' t ' | cut -d' ' -f3 | sort -u`;  do \
+	$(shell $(NM) $(2) 2>/dev/null | grep '[0-9a-f] t ' > .tmp.func-list; for f in a `$(NM) $(1) 2>/dev/null | grep ' t ' | cut -d' ' -f3 | sort -u`;  do \
 	 if [ "$${f#tep_}" = "$$f" ]; then if grep -q $$f .tmp.func-list; then echo --redefine-sym $$f=_tep_local_$$f; fi; fi; done)

Reply via email to