wx build fix. Make sure we link png/jpeg libraries before wx libraries to get the...
[WebKit.git] / WebKit / wx / wxwk-settings.bkl
index e73fbfa5e2515b76b3e8ae84b66eff40059724e8..729487b0ad2b5f7563e02e62161bb4afbe4a584f 100644 (file)
@@ -82,6 +82,14 @@ JavaScriptCore Bakefile project file.
         </if>
     </template>
     <template id="wxwk" template="wxwk_build_settings,wx">
+        <!-- 
+        since wx 2.8's libpng and libjpeg symbols get exported when using gcc/gnu make
+        we need to make sure our versions appear first, so that it will get the symbols
+        from the right place
+        -->
+        <if cond="FORMAT=='gnu'">
+            <ldflags>-ljpeg -lpng</ldflags>
+        </if>
         <wx-lib>core</wx-lib>
         <wx-lib>base</wx-lib>
         <if cond="PLATFORM_WIN32=='1'">