Личный кабинет
Укажите e-mail, на который будет выслан код восстановления пароля.
На указанный вами адрес e-mail был выслан код подтверждения аккаунта. Введите полученный код для продолжения:
Введите новый пароль два раза:
LDFLAGS in the example changed to:'''override LDFLAGS := $(call expand_stlibs,$(STLIBS)) $(libpq_pgport) $(LDFLAGS)'''2017-11-16 20:50 GMT+08:00 高增琦 <pgf00a@gmail.com>:Is this a problem or not?A simple fix:1. add a STLIBS variable in Makefiles as normal prerequisite2. using GNU make's function to generate '-Lxxx -lxxx' for items in STLIBSFor example: libpgfeutils.a in psql's Makefile:'''# function to generate '-Lxxx -lxxx', may put in another fileexpand_stlibs = $(patsubst %,-L%,$(dir $(1))) $(patsubst lib%.a,-l%,$(notdir $(1)))# static libSTLIBS := $(top_builddir)/src/fe_utils/libpgfeutils.a# add STLIBS as normal prerequisitepsql: $(OBJS) $(STLIBS) | submake-libpq submake-libpgport submake-libpgfeutils $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)'''2017-11-15 16:10 GMT+08:00 高增琦 <pgf00a@gmail.com>:Hi,Recently, I found 'psql' is not rebuilt automatically afterediting 'fe_utils/psqlscan.l'.The detail is:'psqlscan.l' is part of 'libpgfeutils.a' which will be builtinto 'psql' statically. But there is no dependency rule betweenthem.It's OK for 'libpq' since 'libpq' is a dynamic library.For a static library such as 'libpgfeutils.a', should weadd dependency rule in Makefile?-- GaoZengqipgf00a@gmail.comzengqigao@gmail.com-- GaoZengqipgf00a@gmail.comzengqigao@gmail.com-- GaoZengqipgf00a@gmail.comzengqigao@gmail.com
Is this a problem or not?A simple fix:1. add a STLIBS variable in Makefiles as normal prerequisite2. using GNU make's function to generate '-Lxxx -lxxx' for items in STLIBSFor example: libpgfeutils.a in psql's Makefile:'''# function to generate '-Lxxx -lxxx', may put in another fileexpand_stlibs = $(patsubst %,-L%,$(dir $(1))) $(patsubst lib%.a,-l%,$(notdir $(1)))# static libSTLIBS := $(top_builddir)/src/fe_utils/libpgfeutils.a# add STLIBS as normal prerequisitepsql: $(OBJS) $(STLIBS) | submake-libpq submake-libpgport submake-libpgfeutils $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)'''2017-11-15 16:10 GMT+08:00 高增琦 <pgf00a@gmail.com>:Hi,Recently, I found 'psql' is not rebuilt automatically afterediting 'fe_utils/psqlscan.l'.The detail is:'psqlscan.l' is part of 'libpgfeutils.a' which will be builtinto 'psql' statically. But there is no dependency rule betweenthem.It's OK for 'libpq' since 'libpq' is a dynamic library.For a static library such as 'libpgfeutils.a', should weadd dependency rule in Makefile?-- GaoZengqipgf00a@gmail.comzengqigao@gmail.com-- GaoZengqipgf00a@gmail.comzengqigao@gmail.com
Hi,Recently, I found 'psql' is not rebuilt automatically afterediting 'fe_utils/psqlscan.l'.The detail is:'psqlscan.l' is part of 'libpgfeutils.a' which will be builtinto 'psql' statically. But there is no dependency rule betweenthem.It's OK for 'libpq' since 'libpq' is a dynamic library.For a static library such as 'libpgfeutils.a', should weadd dependency rule in Makefile?-- GaoZengqipgf00a@gmail.comzengqigao@gmail.com
В списке pgsql-hackers по дате отправления: