summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 01:58:41 +0100
committerDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 13:06:54 +0100
commit0a957ec80e3184cd4cf76a0ec4e070e59d027f8c (patch)
tree91dff40f7b6a8ce5128f3207599bbee093a749a0
parentc7455879349af9e457836a574bddccdf1dbe4f9f (diff)
Cleanup flags in maemo/Makefile.am
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ò <flameeyes@gmail.com>
-rw-r--r--maemo/Makefile.am8
1 files 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