src/Palete/ValaSourceCompiler.vala
authorAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 06:51:32 +0000 (14:51 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 06:51:32 +0000 (14:51 +0800)
src/Palete/ValaSourceCompiler.vala

index 0431a76..11595eb 100644 (file)
@@ -399,11 +399,12 @@ namespace Palete {
                        
                        var ccompiler = new Vala.CCodeCompiler ();
                        var cc_command = Environment.get_variable ("CC");
-                       var pkg_config_command = Environment.get_variable ("PKG_CONFIG");
+                       
                        
                        string [] cc_options = { "-lm" };
                        
 #if VALA_0_28
+                       var pkg_config_command = Environment.get_variable ("PKG_CONFIG");
                        ccompiler.compile (context, cc_command, cc_options, pkg_config_command);
 #else
                        ccompiler.compile (context, cc_command, cc_options);