diff --git a/libs/esl/php/Makefile b/libs/esl/php/Makefile index 5e1f41a16b..0ebd68bfce 100644 --- a/libs/esl/php/Makefile +++ b/libs/esl/php/Makefile @@ -1,5 +1,7 @@ LOCAL_CFLAGS=$(shell php-config --includes) -LOCAL_LDFLAGS=$(shell php-config --ldflags --libs) +PHP_LDFLAGS=$(shell php-config --ldflags) +PHP_LIBS=$(shell php-config --libs) +LOCAL_LDFLAGS=$(PHP_LDFLAGS) $(PHP_LIBS) WRAP_GCC_WARNING_SILENCE=-Wno-unused-label -Wno-unused-function all: ESL.so