Re: Makefile patch to make gcov work on Postgres contrib modules

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Makefile patch to make gcov work on Postgres contrib modules
Дата
Msg-id 87odltd40j.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Makefile patch to make gcov work on Postgres contrib modules  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Makefile patch to make gcov work on Postgres contrib modules  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Gregory Stark <stark@enterprisedb.com> writes:
> >   %.so: %.o
> > !     $(CC) -shared -o $@ $<
>   
> >   sqlmansect = 7
> > --- 11,16 ----
> >   endif
>   
> >   %.so: %.o
> > !     $(CC) $(CFLAGS) -shared -o $@ $<
>   
> Surely CFLAGS should be irrelevant at link time.  Maybe LDFLAGS?

Does LDFLAGS contain flags that can be passed to $(CC) or are they expecting
to be passed to $(LD)?

It would be less convenient for the user who would have to do

CFLAGS='-fprofile-arcs -ftest-coverage' LDFLAGS='-fprofile-arcs -ftest-coverage' ./configure

Unless there's a makefile variable that is included in both CFLAGS and LDFLAGS
that the user could use instead? But then that wouldn't work on architectures
where ld is used instead of gcc for linking.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: elog(FATAL) vs shared memory
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Eliminating unnecessary left joins