Use ldflags instead of ldlibs, because wx-config --libs mixes libs and ldflags, and being able to specify order of ldflags is important. (e.g. on Leopard, if any other *-config script adds -L/usr/lib to the linker flags, wx will link against the system-provided wx.) (2.9 port)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier 2007-11-10 19:33:10 +00:00
parent 71696da09e
commit b357d84136

View File

@ -207,7 +207,7 @@ Format-specific notes:
<!-- all wx libraries should have been already specified, thus
$(__liblist) should contain the full list... -->
<set var="__liblist" append="1">base</set>
<ldlibs>`$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs $(','.join(__liblist.split()))`</ldlibs>
<ldflags>`$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs $(','.join(__liblist.split()))`</ldflags>
</if>
<if cond="value!='base'">
<set var="__liblist" append="1">$(value)</set>