Re: More schema queries
От | Tom Lane |
---|---|
Тема | Re: More schema queries |
Дата | |
Msg-id | 22220.1021904133@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: More schema queries ("Dave Page" <dpage@vale-housing.co.uk>) |
Список | pgsql-hackers |
"Dave Page" <dpage@vale-housing.co.uk> writes: > gcc -g -o postgres.exe -Wl,--base-file,postgres.base postgres.exp > access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o > commands/SUBSYS.o executor /SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o > main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o > postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/ SUBSYS.o > tcop/SUBSYS.o utils/SUBSYS.o -lcygipc -lcrypt > access/SUBSYS.o(.text+0x13):heaptuple.c: undefined reference to `mcount' On Unix it's necessary for the link step to include a -pg switch, just like the compile steps. This is evidently not happening in the Windows case. In the Unix case, $(PROFILE) gets incorporated into $(LDFLAGS) in src/Makefile.global, and then src/backend/Makefile uses $(LDFLAGS) in the backend link rule (line 40 in current source). I don't see any inclusion of flags at all in the Windows link rule at lines 48, 50. Presumably these ought to at least mention $(PROFILE), and I wonder whether they should not say $(LDFLAGS). Please check it out and submit a patch... regards, tom lane
В списке pgsql-hackers по дате отправления: