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

Re: [PATCH/RFC] Port to HP NonStop

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 18, 2012, 17:03 UTC
Message-ID
<7vehlznu0h.fsf@alter.siamese.dyndns.org>
In-Reply-To
<000401cd9575$38a98b40$a9fca1c0$@schmitz-digital.de>
"Joachim Schmitz" <jojo@schmitz-digital.de> writes:
Show 14 quoted lines
>> From: Junio C Hamano [mailto:gitster@pobox.com]
>> Sent: Tuesday, September 18, 2012 9:57 AM
>> To: Joachim Schmitz
>> Cc: git@vger.kernel.org
>> Subject: Re: [PATCH/RFC] Port to HP NonStop
>> 
>> "Joachim Schmitz" <jojo@schmitz-digital.de> writes:
>> 
>> > Needs a different link order in Makefile: libintl before libiconv.
>> > This may affect other platforms, so needs some checking.
>> 
>> It will, and it needs customization, not checking.
>
> How?

By not moving things around to affect other people, but having them in the order you want only for your platform (and other future ports that need similar treatment)?

For example, if you need libintl before libiconv, a quick and dirty way may be

diff --git i/Makefile w/Makefile
index a49d1db..9b2cfd6 100644
--- i/Makefile
+++ w/Makefile
@@ -1552,6 +1552,9 @@ ifdef NEEDS_LIBICONV
 	else
 		ICONV_LINK =
 	endif
+	ifdef NEEDS_LIBINTL_BEFORE_LIBICONV
+		ICONV_LINK += -lintl
+	endif
 	EXTLIBS += $(ICONV_LINK) -liconv
 endif
 ifdef NEEDS_LIBGEN

and your linker command line may have "-lintl -liconv -lintl" but
that wouldn't be an error, and you know you won't be affecting
other platforms that do not use NEEDS_LIBINTL_BEFORE_LIBICONV, no?
Previous: Joachim SchmitzNext: Joachim Schmitz
Message 4 of 5 in “RE: [PATCH/RFC] Port to HP NonStop”
  1. Joachim SchmitzSep 18, 2012
  2. Junio C HamanoSep 18, 2012
  3. Joachim SchmitzSep 18, 2012
  4. Junio C HamanoSep 18, 2012
  5. Joachim SchmitzSep 18, 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.