LINTFLAGS=$(AMLINTFLAGS)
AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
-AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
+AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS) $(AS_NEEDED_FLAGS)
SCRIPTS_PERL = script-email \
amlog-script \
../common-src/libamanda.la \
../gnulib/libgnu.la
-INSTALLPERMS_exec = dest=$(amlibexecdir) chown=amanda $(amlibexec_PROGRAMS) \
- dest=$(applicationdir) chown=amanda $(applicationexec_PROGRAMS) \
- dest=$(applicationdir) chown=amanda $(applicationexec_SCRIPTS)
-
-INSTALLPERMS_data = dest=$(amlibexecdir) chown=amanda $(amlibexec_SCRIPTS)
-
if WANT_SETUID_CLIENT
-INSTALLPERMS_exec += dest=$(applicationdir) chown=root chmod=04750 \
- amgtar amstar
+INSTALLPERMS_exec = dest=$(applicationdir) chown=root:setuid chmod=04750 \
+ amgtar amstar
endif