From 4f7355002c8b88d62362179eb792c712d4056dca Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Fri, 29 Jun 2012 12:00:35 +0300 Subject: Don't link to libstdc++ While the source is C++, it doesn't use anything from the C++ runtime, so by building with -fno-exceptions -fno-rtti, the dynamic library doesn't have to be linked to libstdc++. This also simplifies things for users of the static library. --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index c5b320f..1c77b08 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,6 +11,11 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/libFDK/include \ -I$(top_srcdir)/libPCMutils/include +AM_CXXFLAGS = -fno-exceptions -fno-rtti +libfdk_aac_la_LINK = $(LINK) $(libfdk_aac_la_LDFLAGS) +# Mention a dummy pure C file to trigger generation of the $(LINK) variable +nodist_EXTRA_libfdk_aac_la_SOURCES = dummy.c + fdk_aacincludedir = $(includedir)/fdk-aac fdk_aacinclude_HEADERS = \ $(top_srcdir)/libSYS/include/machine_type.h \ -- cgit v1.2.3