aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/connman/files/use_nm_in_cross_compiling.patch
blob: e9f2b29e3e506b536000b29937b9593031686938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: git/src/Makefile.am
===================================================================
--- git.orig/src/Makefile.am	2008-09-18 16:48:44.000000000 +0800
+++ git/src/Makefile.am	2008-09-18 16:49:54.000000000 +0800
@@ -44,7 +44,11 @@
 MAINTAINERCLEANFILES = Makefile.in
 
 connman.exp:
-	nm -B *.o | awk '{ print $$3 }' | sort -u | grep -E -e '^connman_' > $@
+	if test -n $$host ; then \
+		$(host)-nm -B *.o | awk '{ print $$3 }' | sort -u | grep -E -e '^connman_' > $@ ;\
+	else \
+		nm -B *.o | awk '{ print $$3 }' | sort -u | grep -E -e '^connman_' > $@ ;\
+	fi 
 
 connman.ver: connman.exp
 	echo "{ global:" > $@