From 15156ec317f2b33356f82a81b97e7f87c9bab910 Mon Sep 17 00:00:00 2001
From: Mark Grondona <mgrondona@llnl.gov>
Date: Mon, 3 Mar 2003 21:36:12 +0000
Subject: [PATCH]  o link against built libslurm instead of installed  o rename
 modules to not have "lib" prefix and install them into pkglibdir

---
 src/plugins/auth/Makefile.am | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/plugins/auth/Makefile.am b/src/plugins/auth/Makefile.am
index 257e005e7e1..ba7cca17d89 100644
--- a/src/plugins/auth/Makefile.am
+++ b/src/plugins/auth/Makefile.am
@@ -3,20 +3,20 @@
 
 AUTOMAKE_OPTIONS = foreign
 
-PLUGIN_FLAGS = -module -avoid-version
+PLUGIN_FLAGS = -module -avoid-version -no-undefined 
 
 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src/common
 
 # Add your plugin to this line, following the naming conventions.
-lib_LTLIBRARIES = libauth_none.la libauth_authd.la
+pkglib_LTLIBRARIES = auth_none.la auth_authd.la
 
 # Null authentication plugin.
-libauth_none_la_SOURCES = auth_none.c
-libauth_none_la_LDFLAGS = $(PLUGIN_FLAGS)
-libauth_none_la_LIBADD = -lslurm
+auth_none_la_SOURCES = auth_none.c
+auth_none_la_LDFLAGS = $(PLUGIN_FLAGS)
+auth_none_la_LIBADD = $(top_builddir)/src/api/libslurm.la
 
 # Authd authentication plugin -- requires libauth
-libauth_authd_la_SOURCES = auth_authd.c
-libauth_authd_la_LDFLAGS = $(PLUGIN_FLAGS)
-libauth_authd_la_LIBADD = -lslurm -lauth
+auth_authd_la_SOURCES = auth_authd.c
+auth_authd_la_LDFLAGS = $(PLUGIN_FLAGS) 
+auth_authd_la_LIBADD = $(top_builddir)/src/api/libslurm.la -lauth 
 
-- 
GitLab