[Scons-users] SCons puts the quoted LINKFLAGS value into the command line
Bill Deegan
bill at baddogconsulting.com
Sat Dec 30 00:32:44 EST 2017
No not a bug.
Spaces in LINKFLAGS isn't a bug.
For example.. https://stackoverflow.com/questions/32468283/how-to-contain-
space-in-value-string-of-link-flag-when-using-go-build
This issue is best resolved in the SConstruct for this project.
Also note that the string specified violates the guidelines for LINKFLAGS
in the manpage.
LINKFLAGS
General user options passed to the linker. Note that this variable should
*not* contain -l (or similar) options for linking with the libraries listed
in $LIBS <http://scons.org/doc/production/HTML/scons-man.html#cv-LIBS>, nor
-L (or similar) library search path options that scons generates
automatically from $LIBPATH
<http://scons.org/doc/production/HTML/scons-man.html#cv-LIBPATH>. See
$_LIBFLAGS
<http://scons.org/doc/production/HTML/scons-man.html#cv-_LIBFLAGS> above,
for the variable that expands to library-link options, and$_LIBDIRFLAGS
<http://scons.org/doc/production/HTML/scons-man.html#cv-_LIBDIRFLAGS> above,
for the variable that expands to library search path options.
On Fri, Dec 29, 2017 at 1:22 PM, Yuri <yuri at rawbw.com> wrote:
> On 12/29/17 11:21, Yuri wrote:
>
>>
>> In my case, the FreeBSD framework supplies LINKFLAGS as an argument:
>>
>> MAKE_ARGS+=... LINKFLAGS="${LINKFLAGS}"...
>>
>>
>> Code only has env.AppendUnique for some additional individual values,
>> like this: env.AppendUnique(LINKFLAGS=ldflag)
>>
>> It doesn't explicitly accept the LINKFLAGS supplied as an argument.
>>
>> Does it mean that arguments are automatically appended to env?
>>
>> How do I split that value in this case?
>>
>
>
> I think, this is a bug in SCons.
>
> LINKFLAGS with spaces, passed as an argument, need to be automatically
> converted to array, not used as-is.
>
>
> So you agree?
>
>
>
> Yuri
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20171229/d43c9b5b/attachment.html>
More information about the Scons-users
mailing list