diff options
author | Pavan Deolasee | 2016-02-15 18:28:58 +0000 |
---|---|---|
committer | Pavan Deolasee | 2016-10-18 09:58:31 +0000 |
commit | e11dcb4feb26cafd3bedd411ae8cb02bce517a09 (patch) | |
tree | c8b30bba279da6cac2d114f57b7426b4a71988ee /src | |
parent | c2f2b75f96482c5d04cc71c37c3bab3aad58707c (diff) |
Use "expr" instead of "bc" for arithmetic since "bc" may not be available on
all platforms
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.global.in | 4 | ||||
-rw-r--r-- | src/common/Makefile | 2 | ||||
-rw-r--r-- | src/port/Makefile | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/Makefile.global.in b/src/Makefile.global.in index 29bac9aee2..656cc9879a 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -856,7 +856,7 @@ ifeq ($(GCC), yes) -cat $@.E | grep -E "do .*errstart|do .*elog_start" >> $(top_srcdir)/MSGIDS -rm -f $@.E $(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) @@ -865,7 +865,7 @@ ifeq ($(GCC), yes) -cat $@.E | grep -E "do .*errstart|do .*elog_start" >> $(top_srcdir)/MSGIDS -rm -f $@.E $(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 diff --git a/src/common/Makefile b/src/common/Makefile index 63a187703d..b4e3f67c6e 100644 --- a/src/common/Makefile +++ b/src/common/Makefile @@ -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 $@ diff --git a/src/port/Makefile b/src/port/Makefile index 6bf3dcf868..2aca390720 100644 --- a/src/port/Makefile +++ b/src/port/Makefile @@ -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 $@ |