libnice/0001-Fix-check-symbols-test-for-PPC64.patch

39 lines
1.1 KiB
Diff
Raw Normal View History

From c266ec7eac8730031e3297d144ada9654274fe47 Mon Sep 17 00:00:00 2001
From: David Woodhouse <dwmw2@infradead.org>
Date: Mon, 15 Aug 2011 15:30:36 -0400
Subject: [PATCH] Fix check-symbols test for PPC64
---
nice/Makefile.am | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/nice/Makefile.am b/nice/Makefile.am
index ce7f316..e3438f0 100644
--- a/nice/Makefile.am
+++ b/nice/Makefile.am
@@ -37,11 +37,18 @@ AM_CFLAGS = \
test-symbols.sh::
chmod +x $(srcdir)/$@
-libnice.symbols: libnice.sym Makefile
+libnice-symbols-test.c: libnice.sym Makefile
rm -f $@
- while read s; do echo "T $$s"; done < $< > $@
+ while read s; do echo "void $$s(void) { }" ; done < $< > $@
-CLEANFILES += libnice.symbols
+libnice-symbols-test.o: libnice-symbols-test.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+libnice.symbols: libnice-symbols-test.o Makefile
+ rm -f $@
+ $(top_srcdir)/scripts/make-symbol-list.sh $< >$@
+
+CLEANFILES += libnice.symbols libnice-symbols-test.c libnice-symbols-test.o
check_SCRIPTS = test-symbols.sh
check_DATA = libnice.symbols
--
1.7.6