From 0a957ec80e3184cd4cf76a0ec4e070e59d027f8c Mon Sep 17 00:00:00 2001 From: "Diego E. 'Flameeyes' Pettenò" Date: Fri, 21 Nov 2008 01:58:41 +0100 Subject: Cleanup flags in maemo/Makefile.am MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pass libraries on LIBADD rather than LDFLAGS, don't link to libdl since it's unneeded, no need to pass -shared since libtool's -module takes care of that, the same goes for -fPIC -DPIC (which might not even be the right option). Signed-off-by: Diego E. 'Flameeyes' Pettenò --- maemo/Makefile.am | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maemo/Makefile.am b/maemo/Makefile.am index 124d17f..47b4548 100644 --- a/maemo/Makefile.am +++ b/maemo/Makefile.am @@ -4,14 +4,14 @@ asound_module_ctl_dsp_ctl_LTLIBRARIES = libasound_module_ctl_dsp_ctl.la asound_module_pcm_alsa_dspdir = @ALSA_PLUGIN_DIR@ asound_module_ctl_dsp_ctldir = @ALSA_PLUGIN_DIR@ -AM_CFLAGS = -Wall -fPIC -DPIC -O2 @ALSA_CFLAGS@ $(DBUS_CFLAGS) -AM_LDFLAGS = -shared -lm -ldl -lpthread -module -avoid-version -export-dynamic -no-undefined $(LDFLAGS_NOUNDEFINED) +AM_CFLAGS = -Wall -O2 @ALSA_CFLAGS@ $(DBUS_CFLAGS) +AM_LDFLAGS = -module -avoid-version -export-dynamic -no-undefined $(LDFLAGS_NOUNDEFINED) libasound_module_pcm_alsa_dsp_la_SOURCES = dsp-protocol.c alsa-dsp.c -libasound_module_pcm_alsa_dsp_la_LIBADD = @ALSA_LIBS@ $(DBUS_LIBS) +libasound_module_pcm_alsa_dsp_la_LIBADD = @ALSA_LIBS@ $(DBUS_LIBS) -lm -lpthread libasound_module_ctl_dsp_ctl_la_SOURCES = dsp-protocol.c dsp-ctl.c -libasound_module_ctl_dsp_ctl_la_LIBADD = @ALSA_LIBS@ $(DBUS_LIBS) +libasound_module_ctl_dsp_ctl_la_LIBADD = @ALSA_LIBS@ $(DBUS_LIBS) -lm -lpthread noinst_HEADERS = constants.h debug.h dsp-protocol.h list.h reporting.h \ types.h -- cgit