Re: Build without BUILT_INS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steven Penny <svnpenn@xxxxxxxxx> writes:

> I would like to build Git for Windows without the hard links in libexec/git-core
>
> I tried doing
>
> make install prefix=/c/git BUILT_INS=
>
> and I get this error

Unsurprising.

What are you trying to do?  Are you trying to build a git that does not
know any of the built-in commands like "checkout", "commit", etc?  Or do
you still want a full-featured git, but because you know the code to
perform "git foo" for any builtin command "foo" is contained in git
executable itself, you want to "rm -f git-foo" from the filesystem?

The latter is a bad idea to begin with, as it will break older scripts
that trust the promise that by having git --exec-path early on the $PATH
older forms "git-foo" will always work.

If you really want to do so, the right way is not by mucking BUILT_INS
to empty.  I do not know how GfW is built, but if it uses our usual
Makefile, find the place where it installs the git-foo forms of links
after it installs the main git executable, and comment it out.

And no, it will *not* be a compilation option, as the resulting
installation will break the age-old promise we made to script writers.

Good luck, and have fun.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]