Re: /usr/include/wchar.h:216: error: invalid use of 'restrict' in /lib32

From: Scot Hetzel <swhetzel_at_gmail.com>
Date: Tue, 24 Mar 2009 11:13:14 -0500
On Tue, Mar 24, 2009 at 7:38 AM, Gary Jennejohn
<gary.jennejohn_at_freenet.de> wrote:
> On Tue, 24 Mar 2009 11:56:20 +0100
> Thomas Vogt <freebsdlists_at_bsdunix.ch> wrote:
>
>> I tried to update my current 64bit intel system from late January to the
>> latest current code from March 24.
>>
>> FreeBSD foo.ch 8.0-CURRENT FreeBSD 8.0-CURRENT #3: Sat Jan 24 13:20:12
>> UTC 2009
>>
>> make.conf:
>> WITH_LIB32=yes
>>
>
> Note that it's MK_LIB32, which is only effective if set to 'no'.
> Otherwise 32-bit libraries always seem to be built.
>
The MK_* variables are internal variables for the FreeBSD sources.
They are not to be set in /etc/make.conf.

Instead you use WITH_* or WITHOUT_* to set the value of the MK_* variables.

hp010# make -V MK_LIB32 -DWITHOUT_LIB32 -f Makefile.inc1
no
hp010# make -V MK_LIB32 -DWITH_LIB32 -f Makefile.inc1
yes
hp010# make -V MK_LIB32 WITH_LIB32=yes -f Makefile.inc1
yes
hp010# make -V MK_LIB32 WITH_LIB32=no -f Makefile.inc1
yes

Note: WITH_LIB32=no will still build the LIB32 libraries, use
WITHOUT_LIB32 to not build LIB32.

Scot
Received on Tue Mar 24 2009 - 15:13:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:44 UTC