From 9f7f5a6b08a4f24f706d4328357b22f031e532eb Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 3 Sep 2013 13:40:10 +0200 Subject: [PATCH] Makefile.am: add dummy C++ source file to pet and pet_check_code This ensures that pet and pet_check_code will be linked using the C++ compiler rather than the C compiler, which appears to be required when libpet is constructed as a static library. Signed-off-by: Sven Verdoolaege --- Makefile.am | 2 ++ dummy.cc | 0 2 files changed, 2 insertions(+) create mode 100644 dummy.cc diff --git a/Makefile.am b/Makefile.am index 2f9794a..a150429 100644 --- a/Makefile.am +++ b/Makefile.am @@ -56,6 +56,7 @@ libpet_la_LIBADD = -lclangFrontend -lclangParse -lclangSema \ pet_CFLAGS = $(AM_CFLAGS) @LIBYAML_CPPFLAGS@ pet_LDFLAGS = $(AM_LDFLAGS) @LIBYAML_LDFLAGS@ pet_SOURCES = \ + dummy.cc \ emit.c \ scop_yaml.h \ main.c @@ -79,6 +80,7 @@ pet_check_code_CFLAGS = $(AM_CFLAGS) pet_check_code_LDFLAGS = pet_check_code_LDADD = libpet.la $(LIB_ISL) pet_check_code_SOURCES = \ + dummy.cc \ pet_check_code.c dist-hook: diff --git a/dummy.cc b/dummy.cc new file mode 100644 index 0000000..e69de29 -- 2.11.4.GIT