Commit 195c7eae authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[master] Compile perfdhcp with C compiler and C++ code with C++ compiler.

Compiling perfdhcp.c code with C++ compiler causes errors on various
platforms. Perfdhcp.c is now being refactored to C++ and will be soon removed
parent 031eaf1e
...@@ -12,19 +12,12 @@ if USE_STATIC_LINK ...@@ -12,19 +12,12 @@ if USE_STATIC_LINK
AM_LDFLAGS += -static AM_LDFLAGS += -static
endif endif
# We have to suppress warnings because we are compiling C code with CXX lib_LTLIBRARIES =
# We have to do this to link with new C++ pieces of code libperfdhcp___la_SOURCES = command_options.h
perfdhcp_CXXFLAGS = $(AM_CXXFLAGS) libperfdhcp___la_CXXFLAGS = $(AM_CXXFLAGS)
if USE_CLANGPP libperfdhcp___la_LIBADD = $(top_builddir)/src/lib/exceptions/
perfdhcp_CXXFLAGS += -Wno-error
perfdhcp_CXXFLAGS += -Wno-write-strings
pkglibexec_PROGRAMS = perfdhcp pkglibexec_PROGRAMS = perfdhcp
perfdhcp_SOURCES = perfdhcp_SOURCES = perfdhcp.c
perfdhcp_SOURCES += command_options.h
perfdhcp_LDADD = $(top_builddir)/src/lib/exceptions/
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment