]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
utils/pval: Add -lBlocksRuntime for compiler clang conditionally.
authorAlexander Traud <pabstraud@compuserve.com>
Tue, 17 Apr 2018 12:13:31 +0000 (14:13 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Tue, 17 Apr 2018 12:13:31 +0000 (14:13 +0200)
ASTERISK-27809

Change-Id: I930b364a33d54cc08dedfcd5bb45f7e83242f134

utils/Makefile

index 3a1275407e4de18b03c9ba319356d57e6f2b340b..1af90a43174d17fbc511c55e4f359c79a85b265f 100644 (file)
@@ -161,7 +161,7 @@ aelparse.c: $(ASTTOPDIR)/res/ael/ael_lex.c
        $(CMD_PREFIX) mv "$@.new" "$@"
 
 aelparse.o: _ASTCFLAGS+=-I$(ASTTOPDIR)/res -Wno-unused
-aelparse: LIBS+=-lm
+aelparse: LIBS+=-lm $(AST_CLANG_BLOCKS_LIBS)
 aelparse: aelparse.o aelbison.o pbx_ael.o hashtab.o lock.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o pval.o extconf.o
 
 threadstorage.c: $(ASTTOPDIR)/main/threadstorage.c
@@ -171,6 +171,7 @@ threadstorage.c: $(ASTTOPDIR)/main/threadstorage.c
 
 extconf.o: extconf.c
 
+conf2ael: LIBS+=$(AST_CLANG_BLOCKS_LIBS)
 conf2ael: conf2ael.o ast_expr2f.o ast_expr2.o hashtab.o lock.o aelbison.o aelparse.o pbx_ael.o pval.o extconf.o strcompat.o
 
 check_expr2: $(ASTTOPDIR)/main/ast_expr2f.c $(ASTTOPDIR)/main/ast_expr2.c $(ASTTOPDIR)/main/ast_expr2.h