libnice/0001-Fix-check-symbols-test-for-PPC64.patch
2011-08-15 18:22:28 -06:00

70 lines
2.2 KiB
Diff

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
--- libnice-0.1.0/nice/Makefile.in 2011-08-15 18:11:15.448626132 -0600
+++ libnice-0.1.0-ppc64/nice/Makefile.in 2011-08-15 18:10:46.301065468 -0600
@@ -271,7 +271,8 @@ ERROR_CFLAGS = \
-Wno-missing-field-initializers
# -Wold-style-definition -Winline -Wunreachable-code
-CLEANFILES = *.gcno *.gcda libnice.symbols
+CLEANFILES = *.gcno *.gcda libnice.symbols libnice-symbols-test.c \
+ libnice-symbols-test.o
lib_LTLIBRARIES = libnice.la
libnice_la_SOURCES =
libnice_la_DEPENDENCIES = \
@@ -730,9 +731,16 @@ check-valgrind:
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 < $< > $@
+
+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 $< >$@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.