1. Jacob Carlborg
  2. dake

Commits

Jacob Carlborg  committed a1dbfd7

Added missing linker flags to the linker.

  • Participants
  • Parent commits 827907c
  • Branches default

Comments (0)

Files changed (1)

File dake/build/link.rb

View file
 			cmd = link_command
 			cmd = cmd.sub(Settings.config_d_file, @object_files)
 			cmd = cmd.sub(Settings.config_object_file, target_name)
-			execute("#{cmd} #{@flags}")
+			execute("#{cmd} #{flags}")
 		end	
 		
 		private
 			Settings.static_library_extension if @target.library?
 			Settings.dynamic_library_extension if @target.dynamic_library?
 			Settings.executable_extension if @target.executable?
-		end					
+		end
+		
+		def flags
+			"#{@flags} #{@link_flags}"
+		end		
 	end
 end