From 9b913c654b2895815dc1f0ac9d526111a835aed7 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Wed, 24 Aug 2011 15:54:52 +0000 Subject: [PATCH] Fix linker flags --- src/Makefile.am | 3 ++- src/plugins/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index ca40656..7203aa0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,8 @@ SUBDIRS = plugins AM_CFLAGS = -Wall --std=gnu99 $(GRITS_CFLAGS) -AM_LDFLAGS = -Wl,--export-dynamic +AM_LDFLAGS = -Wl,--export-dynamic \ + -Wl,--as-needed -Wl,--no-undefined bin_PROGRAMS = aweather wsr88ddec aweather_SOURCES = main.c \ diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 9fe42ae..e67c7c6 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -1,6 +1,6 @@ AM_CFLAGS = -Wall --std=gnu99 $(GRITS_CFLAGS) AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib -AM_LDFLAGS = -module -avoid-version -no-undefined +AM_LDFLAGS = -shared -module -avoid-version -Wl,-as-needed LIBS = $(GRITS_LIBS) pluginsdir = $(pkglibdir) -- 2.43.2