Armin K. wrote:
> On 01/24/2014 08:27 PM, Bruce Dubbs wrote:
>> Armin K. wrote:
>>> On 01/21/2014 07:49 PM, bdu...@higgs.linuxfromscratch.org wrote:
>>>> Author: bdubbs
>>>> Date: Tue Jan 21 10:49:14 2014
>>>> New Revision: 10448



>>>> Modified: trunk/BOOK/chapter06/systemd.xml
>>>> ==============================================================================
>>>> --- trunk/BOOK/chapter06/systemd.xml       Sun Jan 19 17:18:30 2014        
>>>> (r10447)
>>>> +++ trunk/BOOK/chapter06/systemd.xml       Tue Jan 21 10:49:14 2014        
>>>> (r10448)
>>>> @@ -53,7 +53,14 @@
>>>>
>>>>    <screen><userinput remap="pre">tar -xvf 
>>>> ../&udev-lfs;.tar.bz2</userinput></screen>
>>>>
>>>> -    <para>Compile the package:</para>
>>>> +    <para>Create two symbolic links to header files and set an
>>>> +    environment variable to properly use <xref 
>>>> linkend="ch-tools-util-linux"/>.</para>
>>>> +
>>>> +<screen><userinput remap="pre">ln -svf /tools/include/blkid /usr/include
>>>> +ln -svf /tools/include/uuid  /usr/include
>>>> +export LD_LIBRARY_PATH=/tools/lib</userinput></screen>
>>>> +
>>>> +    <para>Install the package:</para>
>>>>
>>>
>>> Can't you simply use pkg-config --cflags uuid blkid and pkg-config
>>> --libs uuid blkid in the makefile? It should work just fine and it's a
>>> nicer way.
>>
>> I tried that but LD_LIBRARY_PATH is also needed for 'build/udevadm hwdb
>> --update' and 'bash udev-lfs-208-2/init-net-rules.sh'.
>>
>> If you can get a clean build another way, we can do that, but I tried a
>> lot of things and the above is the best way I could come up with in the
>> LFS Chapter 6 environment.
>>
>> Note that if we are using pkg-config, we would need to set
>> PKG_CONFIG_PATH=/tools/lib/pkgconfig
>>
>
> No, LD_LIBRARY_PATH is fine. I was talking about creating the symlinks
> and then deleting them. Also, nothing is preventing you to set both
> LD_LIBRARY_PATH and PKG_CONFIG_PATH in Makefile, since the file is
> already LFS specific.

When I set -I/tools/include inside the Makefile instead of using the 
symlinks, I got a lot of warnings instead of the relatively clean build 
we have now.  I didn't investigate why that was happening.

I did think about changing the Makefile more, but wanted it to be 
relevant to a rebuild outside of Chapter 6.

   -- Bruce




-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to