diff -dur -x '*~' -x '*.orig' -x '*.rej' asterisk-13.16.0.orig/main/Makefile asterisk-13.16.0/main/Makefile --- asterisk-13.16.0.orig/main/Makefile 2017-05-30 19:44:16.000000000 +0200 +++ asterisk-13.16.0/main/Makefile 2017-06-09 14:17:11.000000000 +0200 @@ -47,7 +47,7 @@ AST_LIBS+=$(RT_LIB) AST_LIBS+=$(SYSTEMD_LIB) -ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc kfreebsd-gnu),) +ifneq ($(findstring $(OSARCH), linux-gnu linux-gnux32 uclinux linux-uclibc kfreebsd-gnu),) AST_LIBS+=-ldl ifneq (x$(CAP_LIB),x) AST_LIBS+=$(CAP_LIB) diff -dur -x '*~' -x '*.orig' -x '*.rej' asterisk-13.16.0.orig/Makefile asterisk-13.16.0/Makefile --- asterisk-13.16.0.orig/Makefile 2017-05-30 19:44:16.000000000 +0200 +++ asterisk-13.16.0/Makefile 2017-06-09 14:16:48.000000000 +0200 @@ -183,6 +183,11 @@ # Create OPTIONS variable, but probably we can assign directly to ASTCFLAGS OPTIONS= +ifeq ($(OSARCH),linux-gnux32) + # flag to tell 'ldconfig' to only process specified directories + LDCONFIG_FLAGS=-n +endif + ifeq ($(findstring -save-temps,$(_ASTCFLAGS) $(ASTCFLAGS)),) ifeq ($(findstring -pipe,$(_ASTCFLAGS) $(ASTCFLAGS)),) _ASTCFLAGS+=-pipe