Set setuid bit on the installed binary

Use the Automake install-exec-hook to set the setuid bit on the
binary after its installation.
pull/1/head
Damien Goutte-Gattat 8 years ago
parent 39c449cec4
commit edf9d38bce
  1. 3
      src/Makefile.am

@ -5,3 +5,6 @@ scdrand_SOURCES = scdrand.c
AM_CPPFLAGS = -I$(top_srcdir)/lib
AM_LDFLAGS = -L$(top_builddir)/lib
LDADD = -lscdrand
install-exec-hook:
chmod 4755 $(DESTDIR)$(bindir)/scdrand$(EXEEXT)

Loading…
Cancel
Save