Use "expr" instead of "bc" for arithmetic since "bc" may not be available on
authorPavan Deolasee <[email protected]>
Mon, 15 Feb 2016 18:28:58 +0000 (23:58 +0530)
committerPavan Deolasee <[email protected]>
Mon, 15 Feb 2016 18:30:09 +0000 (00:00 +0530)
all platforms

src/Makefile.global.in
src/common/Makefile
src/port/Makefile

index d70f2007fe1db38938771d7a65ae7e7f301b05fc..07d60aa1e02276c212760b571f2b3f50ba20f885 100644 (file)
@@ -877,7 +877,7 @@ ifeq ($(GCC), yes)
        -cat [email protected] | grep -E "do .*errstart|do .*elog_start" >> $(top_srcdir)/MSGIDS
        -rm -f [email protected]
        $(COMPILE.c) -DPGXL_MSG_MODULE=$(PGXL_MSG_MODULE) -DPGXL_MSG_FILEID=$(PGXL_MSG_FILEID) -o $@ $< -MMD -MP -MF $(DEPDIR)/$(*F).Po
-       $(eval PGXL_MSG_FILEID := $(shell echo $(PGXL_MSG_FILEID) + 1 | bc))
+       $(eval PGXL_MSG_FILEID := $(shell expr $(PGXL_MSG_FILEID) + 1))
 endif # GCC
 else
 ifeq ($(GCC), yes)
@@ -886,7 +886,7 @@ ifeq ($(GCC), yes)
        -cat [email protected] | grep -E "do .*errstart|do .*elog_start" >> $(top_srcdir)/MSGIDS
        -rm -f [email protected]
        $(COMPILE.c) -DPGXL_MSG_MODULE=$(PGXL_MSG_MODULE) -DPGXL_MSG_FILEID=$(PGXL_MSG_FILEID) -o $@ $<
-       $(eval PGXL_MSG_FILEID := $(shell echo $(PGXL_MSG_FILEID) + 1 | bc))
+       $(eval PGXL_MSG_FILEID := $(shell expr $(PGXL_MSG_FILEID) + 1))
 endif # GCC
 
 endif # autodepend
index 63a187703dd4fc5a03472842d7f7380fa45ceb19..b4e3f67c6e7f34a5c8d63e12f79092971a8e5729 100644 (file)
@@ -64,7 +64,7 @@ ifeq ($(genmsgids), yes)
 PGXL_MSG_FILEID := 1
 %_srv.o: %.c %.o
        $(CC) $(CFLAGS) -DPGXL_MSG_MODULE=$(PGXL_MSG_MODULE) -DPGXL_MSG_FILEID=$(PGXL_MSG_FILEID) $(subst -DFRONTEND,, $(CPPFLAGS)) -c $< -o $@
-       $(eval PGXL_MSG_FILEID := $(shell echo $(PGXL_MSG_FILEID) + 1 | bc))
+       $(eval PGXL_MSG_FILEID := $(shell expr $(PGXL_MSG_FILEID) + 1))
 else
 %_srv.o: %.c %.o
        $(CC) $(CFLAGS) $(subst -DFRONTEND,, $(CPPFLAGS)) -c $< -o $@
index 6bf3dcf868c4d331e1911e1f25379714b1f8c424..2aca3907207c1cef7b56833e4409c367fcdfa600 100644 (file)
@@ -80,7 +80,7 @@ ifeq ($(genmsgids), yes)
 PGXL_MSG_FILEID := 1
 %_srv.o: %.c %.o
        $(CC) $(CFLAGS) -DPGXL_MSG_MODULE=$(PGXL_MSG_MODULE) -DPGXL_MSG_FILEID=$(PGXL_MSG_FILEID) $(subst -DFRONTEND,, $(CPPFLAGS)) -c $< -o $@
-       $(eval PGXL_MSG_FILEID := $(shell echo $(PGXL_MSG_FILEID) + 1 | bc))
+       $(eval PGXL_MSG_FILEID := $(shell expr $(PGXL_MSG_FILEID) + 1))
 else
 %_srv.o: %.c %.o
        $(CC) $(CFLAGS) $(subst -DFRONTEND,, $(CPPFLAGS)) -c $< -o $@