git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: 1.7.9, libcharset missing from EXTLIBS

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 10, 2012, 20:25 UTC
Message-ID
<7vd39mph9x.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7vipjer0yn.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 14 quoted lines
> Дилян Палаузов <dilyan.palauzov@aegee.org> writes:
>
>>>> What I am wondering is there are systems that need to include the header,
>>>> but locale_charset() does not live in /lib/libcharset.a, in which case we
>>>> cannot make HAVE_LIBCHARSET_H imply use of -lcharset.
>>
>> I do not understand this.  If you want to use a function from
>> libcharset, you have to use both #include <libcharset.h> and
>> -lcharset.
>
> You are mistaken.
>
> The only constraint is that you have to "#include <libcharset.h>" and need
> to link with the library that has locale_charset() defined.

I think the follow-ups in this thread already demonstrated why it is an insufficient solution to make HAVE_LIBCHARSET_H imply -lcharset.

We would instead need:
	ifeq ($(uname_S),MyHomeBrewLinux)
        	HAVE_LIBCHARSET_H = YesPlease
                EXTLIBS += -lcharset
	endif
or
	# Define NEEDS_CHARSETLIB if you use HAVE_LIBCHARSET_H and
        # need to link with -lcharset
	NEEDS_CHARSETLIB =
	ifeq ($(uname_S),MyHomeBrewLinux)
        	HAVE_LIBCHARSET_H = YesPlease
		NEEDS_CHARSETLIB = YesPlease
	endif
	ifdef NEEDS_CHARSETLIB
        	EXTLIBS += -lcharset
	endif        
or something like that, I guess.
Previous: Erik Faye-LundNext: Дилян Палаузов
Message 8 of 13 in “1.7.9, libcharset missing from EXTLIBS”
  1. Дилян ПалаузовFeb 10, 2012
  2. Junio C HamanoFeb 10, 2012
  3. Ævar Arnfjörð BjarmasonFeb 10, 2012
  4. Дилян ПалаузовFeb 10, 2012
  5. Junio C HamanoFeb 10, 2012
  6. Dilyan PalauzovFeb 10, 2012
  7. Erik Faye-LundFeb 10, 2012
  8. Junio C HamanoFeb 10, 2012
  9. Дилян ПалаузовFeb 12, 2012
  10. Ævar Arnfjörð BjarmasonFeb 12, 2012
  11. Junio C HamanoFeb 12, 2012
  12. Re: 1.7.9, libcharset missing from EXTLIBSДилян Палаузов, Feb 12, 2012
  13. Jakub NarebskiFeb 10, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.