diff --git a/Makefile b/Makefile index afd50c3cc9ad5a68b534ea5ca87565c47e9ba03d..6bc63a1a8158ded6037676d99c0282efbd10df10 100644 --- a/Makefile +++ b/Makefile @@ -624,7 +624,7 @@ oldmodcheck: ld-cache-update: ifneq ($(LDCONFIG),) ifeq ($(DESTDIR),) # DESTDIR means binary archive creation; ldconfig should be run on postinst - @if [ $${EUID} -eq 0 ] ; then \ + @if [ $$(id -u) -eq 0 ] ; then \ $(LDCONFIG) "$(ASTLIBDIR)/" ; \ else \ echo " WARNING WARNING WARNING" ;\