Use the same paranoia we already apply to lib lists we get from configure
to those we get from the user on the command line. Bubble all duplicates to occur at their last mention so static linking order is satified. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0746037046
commit
6a9046db1e
18
wx-config.in
18
wx-config.in
@ -957,22 +957,18 @@ if is_monolithic; then
|
|||||||
|
|
||||||
else # MONOLITHIC = 0
|
else # MONOLITHIC = 0
|
||||||
|
|
||||||
# Import everything by default, and base if it was omitted.
|
# Import everything by default, expand std if specified, or add base if omitted.
|
||||||
if [ -z "$wx_libs" ]; then
|
if [ -z "$wx_libs" ]; then
|
||||||
wx_libs="@CORE_GUI_LIBS@ @CORE_BASE_LIBS@"
|
wx_libs="@CORE_GUI_LIBS@ @CORE_BASE_LIBS@"
|
||||||
elif ! match_field base $wx_libs ; then
|
elif match_field std $wx_libs; then
|
||||||
wx_libs="$wx_libs base"
|
# Bubble any libs that were already specified to the end
|
||||||
fi
|
# of the list and ensure static linking order is retained.
|
||||||
|
|
||||||
# Expand the magic library 'std' to the default set.
|
|
||||||
# Only add those not already specified to future-proof
|
|
||||||
# against changes to std which would otherwise break
|
|
||||||
# people's builds.
|
|
||||||
if match_field std $wx_libs; then
|
|
||||||
wx_libs=$(remove_field std $wx_libs)
|
wx_libs=$(remove_field std $wx_libs)
|
||||||
for i in @CORE_GUI_LIBS@ @CORE_BASE_LIBS@; do
|
for i in @CORE_GUI_LIBS@ @CORE_BASE_LIBS@; do
|
||||||
match_field "$i" $wx_libs || wx_libs="$wx_libs $i"
|
wx_libs="$(remove_field $i $wx_libs) $i"
|
||||||
done
|
done
|
||||||
|
elif ! match_field base $wx_libs ; then
|
||||||
|
wx_libs="$wx_libs base"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
using_gui=no
|
using_gui=no
|
||||||
|
Loading…
Reference in New Issue
Block a user