wscript: *prepend* CFLAGS and LINKFLAGS
commitb02998a2156c799869fa4119390ff260f6537bf4
authorNedko Arnaudov <nedko@nedk.org>
Fri, 5 May 2023 13:52:11 +0000 (5 16:52 +0300)
committerNedko Arnaudov <nedko@nedk.org>
Sun, 14 May 2023 16:36:24 +0000 (14 19:36 +0300)
tree37b2194a42f10edfce8189553bbab783140049da
parent7728d2d40e1c8eeb84b8605a411d9a83701d48b3
wscript: *prepend* CFLAGS and LINKFLAGS

Appending new options at end of the array has unfortunate effect
of not allowing easy override of flags set in wscript.

This change makes add_cflag() and add_linkflag() prepend,
thus leaving the supplied during configure parameters
take precedence by being at the end of the parameter list.

Fix for [a386c3e] LDFLAGS is ignored

(cherry picked from commit 88b70fcdd71bae67f0281d5752086a652a435bcd)
wscript