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

Re: [PATCH] Makefile: set USE_PIC on Linux x86_64 for linking with Git.pm

From
MRMarco Roeland <marco.roeland@xs4all.nl>
Date
Jun 28, 2006, 19:21 UTC
Message-ID
<20060628192145.GD5713@fiberbit.xs4all.nl>
In-Reply-To
<7virml14za.fsf@assigned-by-dhcp.cox.net>
On Wednesday June 28th 2006 Junio C Hamano wrote:
Show 18 quoted lines
> >>  ifeq ($(uname_S),Linux)
> >>  	NO_STRLCPY = YesPlease
> >> +	ifneq (,$(findstring x86_64,$(uname_M)))
> >> +		USE_PIC = YesPlease
> >> +	endif
> >>  endif
> 
> In other words, I am wondering why you did not do this more
> obvious one:
> 
>         ifeq ($(uname_M),x86_64)
>                 USE_PIC = YesPlease
>         endif
> 
> My suspicion is that you protected that in Linux on purpose
> because you know that my version would break for somebody else,
> or because you are trying to be cautious not to break other
> platforms you do not have access to, and I cannot tell which.

Sorry for the confusion. Yes that construct is much more readable. I copy and pasted it from another section in the Makefile and adapted it to this use. I tested it and it worked so I decided no to change it anymore. So that clears up the syntactical issue.

I certainly do not know cases outside Linux where this might break on x86-64. I just tried to limit it to the case I could test. But perhaps someone with an x86-64 BSD or Solaris might try it?

To paraphrase Dave Jones: I type 'make', it fails. Some 'git log' later I realise I have to manually define 'USE_PIC'. Hey, why doesn't it work automagically? Some 'git grep' and I spot a construct for specific (sub)platforms. Monkey see, monkey do. I type 'make', it works and monkey sends patch! Thats it! No subtleties involved;-)

-- 
Marco Roeland
Previous: Junio C HamanoNext: Marco Roeland
Message 4 of 13 in “Makefile: set USE_PIC on Linux x86_64 for linking with Git.pm”
  1. Makefile: set USE_PIC on Linux x86_64 for linking with Git.pmMarco Roeland, Jun 28, 2006
  2. Junio C HamanoJun 28, 2006
  3. Junio C HamanoJun 28, 2006
  4. Marco RoelandJun 28, 2006
  5. Makefile: set USE_PIC on Linux x86_64 for linking with Git.xsMarco Roeland, Jun 28, 2006
  6. Pavel RoskinJun 28, 2006
  7. Jakub NarebskiJun 29, 2006
  8. Pavel RoskinJun 30, 2006
  9. Jakub NarebskiJun 30, 2006
  10. Marco RoelandJun 28, 2006
  11. Junio C HamanoJun 28, 2006
  12. Sergey VlasovJun 29, 2006
  13. Josef WeidendorferJun 29, 2006

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.