Added configuration option --enable-lib-exec that can remove executable permission from installed shared libraries and Yate modules.
Attempt to detect the proper default to match Debian / Ubuntu install policy. git-svn-id: http://voip.null.ro/svn/yate@5866 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
9650a7890c
commit
1f1e27d68a
|
@ -214,7 +214,7 @@ install-noconf: all
|
|||
f=`readlink "$$i"` ; \
|
||||
ln -sf "$$f" "$(DESTDIR)$(libdir)/$$i" ; \
|
||||
else \
|
||||
install $$i "$(DESTDIR)$(libdir)/" ; \
|
||||
install @INSTALL_L@ $$i "$(DESTDIR)$(libdir)/" ; \
|
||||
fi \
|
||||
done
|
||||
@mkdir -p "$(DESTDIR)$(bindir)/" && \
|
||||
|
|
|
@ -81,7 +81,7 @@ install: all
|
|||
f=`readlink "../../$$i"` ; \
|
||||
ln -sf "$$f" "$(DESTDIR)$(libdir)/$$i" ; \
|
||||
else \
|
||||
install ../../$$i "$(DESTDIR)$(libdir)/" ; \
|
||||
install @INSTALL_L@ ../../$$i "$(DESTDIR)$(libdir)/" ; \
|
||||
fi \
|
||||
done; \
|
||||
mkdir -p "$(DESTDIR)$(incdir)" && \
|
||||
|
|
25
configure.in
25
configure.in
|
@ -1559,6 +1559,31 @@ fi
|
|||
fi
|
||||
|
||||
|
||||
INSTALL_L=""
|
||||
AC_ARG_ENABLE(lib-exec,AC_HELP_STRING([--enable-lib-exec],[Executable libraries and modules (default: auto)]),want_lib_exec=$enableval,want_lib_exec=auto)
|
||||
case "x$want_lib_exec" in
|
||||
xyes)
|
||||
;;
|
||||
xno)
|
||||
INSTALL_L="-m 0644"
|
||||
;;
|
||||
xauto)
|
||||
AC_MSG_CHECKING([if shared libraries should be executable])
|
||||
if stat -L "/usr/$ARCHLIB/libm.so" 2>/dev/null | grep -q '(0644/'; then
|
||||
want_lib_exec=no
|
||||
INSTALL_L="-m 0644"
|
||||
else
|
||||
want_lib_exec=yes
|
||||
fi
|
||||
AC_MSG_RESULT([$want_lib_exec])
|
||||
;;
|
||||
*)
|
||||
AC_ERROR([Invalid argument passed to --enable-lib-exec])
|
||||
;;
|
||||
esac
|
||||
AC_SUBST(INSTALL_L)
|
||||
|
||||
|
||||
INSTALL_D="install -D"
|
||||
CFLAGS=`echo "$CFLAGS" | sed 's/\(^\| *\)-g[[0-9]]*//' | sed 's/[[[:space:]]]\{2,\}/ /g'`
|
||||
MODULE_CFLAGS="-fno-exceptions -fPIC $HAVE_GCC_FORMAT_CHECK $HAVE_BLOCK_RETURN"
|
||||
|
|
|
@ -235,7 +235,7 @@ install: all do-install
|
|||
mkdir -p "$(DESTDIR)$(moddir)/$$i" ; \
|
||||
done; \
|
||||
for i in $(PROGS) ; do \
|
||||
@INSTALL_D@ "$$i" "$(DESTDIR)$(moddir)/$$i" ; \
|
||||
@INSTALL_D@ @INSTALL_L@ "$$i" "$(DESTDIR)$(moddir)/$$i" ; \
|
||||
done;
|
||||
|
||||
.PHONY: uninstall
|
||||
|
|
Loading…
Reference in New Issue