using pg_config to get LDFLAGS?

Поиск
Список
Период
Сортировка
От girgen@FreeBSD.org
Тема using pg_config to get LDFLAGS?
Дата
Msg-id C58EA573FFE9F54E1123D83B@palle.girgensohn.se
обсуждение исходный текст
Список pgsql-hackers
Hi!

I'm maintaining a bunch of FreeBSD ports for postgresql stuff. I get 
problems when building postgresql with Kerberos, because packages like 
libpqxx does not automatically understand that it will also need to link 
with libkrb.so. Is there any "default" way to get gnu configure for such 
packages to understand that it needs to link with libkrb.so?

Using pg_config --configure, the LDFLAGS are there to extract, but perhaps 
a cleaner way is possible?

# # without kerberos:
# pg_config --configure
'--with-libraries=/usr/local/lib' '--with-includes=/usr/local/include' 
'--with-docdir=/usr/local/share/doc/postgresql' '--enable-nls' 
'--prefix=/usr/local' 'i386-portbld-freebsd5.3' 'LDFLAGS=' 'CFLAGS=-O -pipe 
-march=athlon-xp' 'host_alias=i386-portbld-freebsd5.3' 
'build_alias=i386-portbld-freebsd5.3' 
'target_alias=i386-portbld-freebsd5.3' 'CC=cc'

# # with kerberos
# pg_config  --configure
'--with-libraries=/usr/local/lib' '--with-includes=/usr/local/include' 
'--with-docdir=/usr/local/share/doc/postgresql' '--enable-nls' 
'--with-krb5' '--prefix=/usr/local' 'i386-portbld-freebsd5.3' 'LDFLAGS= 
-L/usr/lib -lkrb5 -lasn1 -lcrypto -lroken -lcrypt -lcom_err' 'CFLAGS=-O 
-pipe -march=athlon-xp' 'host_alias=i386-portbld-freebsd5.3' 
'build_alias=i386-portbld-freebsd5.3' 
'target_alias=i386-portbld-freebsd5.3' 'CC=cc'

Regards,
Palle



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: buildfarm NetBSD/m68k tsearch regression failure
Следующее
От: Manfred Koizar
Дата:
Сообщение: Re: Shared row locking