Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2013 16:33:50 +0400
From:      Gennady Proskurin <gprspb@mail.ru>
To:        Tim Kientzle <kientzle@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r249484 - head/lib
Message-ID:  <20130415123349.GA27773@gpr.nnz-home.ru>
In-Reply-To: <201304141913.r3EJDqPI095965@svn.freebsd.org>
References:  <201304141913.r3EJDqPI095965@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Here is the quote from r231336 commit message:
===
commit be984b719cbcb225dc4afaf9f52b38fb882a09d3
Author: kientzle <kientzle@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Date:   Fri Feb 10 05:05:42 2012 +0000

    Implement -print-file-name=include (which is undocumented
    but used by some Linux boot loaders).  This option prints
    out the directory holding the include files needed by
    a freestanding program.  The default implementation of
    this doesn't work on FreeBSD because of the different
    include file layout.  But it's easy to implement:
    just return /usr/include (or the cross-compiling equivalent).
===

It turns out, that now we create useless symlink /usr/lib/include just to ease
support of "some Linux boot loaders"?

I do not have full knowledge about the issue, so excuse me if I misunderstood
something.


On Sun, Apr 14, 2013 at 07:13:52PM +0000, Tim Kientzle wrote:
> Author: kientzle
> Date: Sun Apr 14 19:13:51 2013
> New Revision: 249484
> URL: http://svnweb.freebsd.org/changeset/base/249484
> 
> Log:
>   Install a symlink
>     /usr/lib/include ==> /usr/include
>   
>   This fixes -print-file-name=include in clang (and is
>   arguably a better way to fix the same issue in GCC than
>   the change I made in r231336).
>   
>   MFC after:	1 week
> 
> Modified:
>   head/lib/Makefile
> 
> Modified: head/lib/Makefile
> ==============================================================================
> --- head/lib/Makefile	Sun Apr 14 18:36:30 2013	(r249483)
> +++ head/lib/Makefile	Sun Apr 14 19:13:51 2013	(r249484)
> @@ -252,4 +252,7 @@ _libusbhid=	libusbhid
>  _libusb=	libusb
>  .endif
>  
> +afterinstall:
> +	ln -fs ../include ${DESTDIR}/usr/lib/include
> +
>  .include <bsd.subdir.mk>
> _______________________________________________
> svn-src-head@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130415123349.GA27773>