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.)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2007-11-10 19:31:25 +00:00
parent 40e0c0c3b5
commit b373368d75

View File

@@ -117,13 +117,13 @@ Format-specific notes:
<if cond="FORMAT=='autoconf' and value=='base'">
<!-- all wx-dependent libraries should have been already listed
thus we can now add WX_LIBS to the linker line -->
<ldlibs>$(WX_LIBS)</ldlibs>
<ldflags>$(WX_LIBS)</ldflags>
</if>
<if cond="FORMAT=='gnu' and value=='base'">
<!-- 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) --libs $(','.join(__liblist.split()))`</ldlibs>
<ldflags>`$(WX_CONFIG) --libs $(','.join(__liblist.split()))`</ldflags>
</if>
<if cond="FORMAT=='gnu' and value!='base'">
<set var="__liblist" append="1">$(value)</set>