correct build on platforms that require PIC objects (bug #4179)
[asterisk/asterisk.git] / funcs / Makefile
index a5228f6..c0be125 100755 (executable)
@@ -21,6 +21,8 @@ FUNCS+=$(STANDALONE_FUNCS:.o=.so)
 
 FUNC_STRUCTS=$(shell grep 'struct ast_custom_function' $(BUILTINS:.o=.c) | awk '{print $$3};')
 
+CFLAGS+=-fPIC
+
 all: $(FUNCS)
 
 clean: