Martijn Dekker dixit:

>Op 16-04-17 om 01:24 schreef Thorsten Glaser:
>> Martijn Dekker dixit:
>>
>>> When building lksh R55, adding -DMKSH_BINSHREDUCED to the CFLAGS no
>>
>> CPPFLAGS.
>
>Done that, no difference.

Works for me well enough.

tglase@tglase:~/b $ CPPFLAGS=-DMKSH_BINSHREDUCED mksh 
/home/tglase/mbsd/mksh/Build.sh -r -L
[…]
tglase@tglase:~/b $ ln -s lksh sh
tglase@tglase:~/b $ ./lksh -c 'set -o; echo $KSH_VERSION'
Current option settings
allexport      off   inherit-xtrace on    noexec         off   pipefail       
off   utf8-mode      off
bgnice         off   interactive    off   noglob         off   posix          
off   verbose        off
braceexpand    on    keyword        off   nohup          on    privileged     
off   vi             off
emacs          on    login          off   nolog          off   restricted     
off   vi-esccomplete off
errexit        off   markdirs       off   notify         off   sh             
off   vi-tabcomplete on
gmacs          off   monitor        off   nounset        off   stdin          
off   viraw          off
ignoreeof      off   noclobber      off   physical       off   trackall       
on    xtrace         off
@(#)LEGACY KSH R55 2017/04/17
tglase@tglase:~/b $ ./sh -c 'set -o; echo $KSH_VERSION'
Current option settings
allexport      off   inherit-xtrace on    noexec         off   pipefail       
off   utf8-mode      off
bgnice         off   interactive    off   noglob         off   posix          
off   verbose        off
braceexpand    off   keyword        off   nohup          on    privileged     
off   vi             off
emacs          on    login          off   nolog          off   restricted     
off   vi-esccomplete off
errexit        off   markdirs       off   notify         off   sh             
on    vi-tabcomplete on
gmacs          off   monitor        off   nounset        off   stdin          
off   viraw          off
ignoreeof      off   noclobber      off   physical       off   trackall       
on    xtrace         off
@(#)LEGACY KSH R55 2017/04/17

>Also, that is not clear from mksh.htm which says to add it to "the
>command line".

Of course it is, -D is a cpp(1) flag and thus must be in CPPFLAGS.

bye,
//mirabilos
-- 
In traditional syntax ' is ignored, but in c99 everything between two ' is
handled as character constant.  Therefore you cannot use ' in a preproces-
sing file in c99 mode.  -- Ragge
No faith left in ISO C99, undefined behaviour, etc.

Reply via email to