summaryrefslogtreecommitdiff
blob: 55116c67e416c3499649965eb2e03eeeb7062cab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
https://bugs.gentoo.org/518440

avoid compiling tests when we aren't actually testing, especially since it
requires a compiler to execute which fails when cross-compiling

--- protobuf-c-1.3.0/Makefile.am
+++ protobuf-c-1.3.0/Makefile.am
@@ -150,7 +150,7 @@
 t_generated_code2_test_generated_code2_LDADD = \
 	protobuf-c/libprotobuf-c.la
 
-noinst_PROGRAMS += \
+check_PROGRAMS += \
 	t/generated-code2/cxx-generate-packed-data
 
 t_generated_code2_cxx_generate_packed_data_SOURCES = \
@@ -178,13 +178,6 @@
 t/generated-code2/test-full-cxx-output.inc: t/generated-code2/cxx-generate-packed-data$(EXEEXT)
 	$(AM_V_GEN)$(top_builddir)/t/generated-code2/cxx-generate-packed-data$(EXEEXT) > $(top_builddir)/t/generated-code2/test-full-cxx-output.inc
 
-BUILT_SOURCES += \
-	t/test.pb-c.c t/test.pb-c.h \
-	t/test-full.pb-c.c t/test-full.pb-c.h \
-	t/test-optimized.pb-c.c t/test-optimized.pb-c.h \
-	t/test-full.pb.cc t/test-full.pb.h \
-	t/generated-code2/test-full-cxx-output.inc
-
 if BUILD_PROTO3
 
 check_PROGRAMS += \