Re: ranlib bleating about dirmod.o being empty

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: ranlib bleating about dirmod.o being empty
Дата
Msg-id 55077EBF.6010403@gmx.net
обсуждение исходный текст
Ответ на ranlib bleating about dirmod.o being empty  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: ranlib bleating about dirmod.o being empty  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 3/14/15 12:58 PM, Tom Lane wrote:
> I'm getting rather tired of reading these warning messages in OS X builds:
> 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file:
libpgport.a(dirmod.o)has no symbols
 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file:
libpgport_srv.a(dirmod_srv.o)has no symbols
 
> 
> The reason for this warning is that dirmod.o contains no functions that
> aren't Windows-specific.  As such, it seems like putting it into the
> list of "always compiled" port modules is really a mistake.  Any
> objections to switching it to be built only on Windows?

It looks like ar isn't even the preferred method to build static
libraries on OS X anymore.  Instead, one should use libtool (not GNU
libtool), which has a -no_warning_for_no_symbols option.




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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: deparsing utility commands
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [PATCH] Add transforms feature