[cogl] Fix generating the unit test wrappers when building with MingW32
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] Fix generating the unit test wrappers when building with MingW32
- Date: Mon, 2 Sep 2013 17:07:01 +0000 (UTC)
commit 8bbd4d49fcbaa2add5fb5d544f2c0a08e7658d36
Author: Neil Roberts <neil linux intel com>
Date: Mon Sep 2 17:56:39 2013 +0100
Fix generating the unit test wrappers when building with MingW32
For some reason the unit test symbols end up in the read-only data
section when building on windows rather than the initialised data
section so they have a different letter in the list generated by nm.
They also begin with an underscore because windows likes to add
underscores to symbols for some reason. This patch changes the regular
expressions in the code to generate the wrapper list so that it
accepts either way.
Reviewed-by: Robert Bragg <robert linux intel com>
tests/unit/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am
index d75cd0e..9502472 100644
--- a/tests/unit/Makefile.am
+++ b/tests/unit/Makefile.am
@@ -21,7 +21,7 @@ stamp-test-unit: Makefile test-unit$(EXEEXT)
@mkdir -p wrappers
source $(top_builddir)/cogl/libcogl2.la ; \
$(NM) $(top_builddir)/cogl/.libs/"$$dlname"| \
- grep 'D unit_test_'|sed 's/.\+ D //' > unit-tests
+ grep '[DR] _\?unit_test_'|sed 's/.\+ [DR] _\?//' > unit-tests
@chmod +x $(top_srcdir)/tests/test-launcher.sh
@( echo "/stamp-test-unit" ; \
echo "/test-unit$(EXEEXT)" ; \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]