Skip to content

Commit dd5f0ee

Browse files
author
_why
committed
* Rakefile: sorry, shoes/version.h needs to write before OBJ.
1 parent 44e5b68 commit dd5f0ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ when /win32/
226226
"/SUBSYSTEM:WINDOWS bin/main.obj shoes/appwin32.res lib#{SONAME}.lib #{MSVC_LIBS2}"
227227
end
228228

229-
task "dist/lib#{SONAME}.dll" => OBJ + ["shoes/version.h"] do |t|
229+
task "dist/lib#{SONAME}.dll" => ["shoes/version.h"] + OBJ do |t|
230230
sh "link #{MSVC_LDFLAGS} /OUT:#{t.name} /dll " +
231231
"/LIBPATH:#{ext_ruby}/lib " +
232232
"/LIBPATH:deps/cairo/lib " +
@@ -324,7 +324,7 @@ else
324324
end
325325
end
326326

327-
task "dist/lib#{SONAME}.#{DLEXT}" => OBJ + ['shoes/version.h'] do |t|
327+
task "dist/lib#{SONAME}.#{DLEXT}" => ['shoes/version.h'] + OBJ do |t|
328328
ldflags = LINUX_LDFLAGS.sub! /INSTALL_NAME/, "-install_name @executable_path/lib#{SONAME}.#{DLEXT}"
329329
sh "#{CC} -o #{t.name} #{OBJ.join(' ')} #{LINUX_LDFLAGS} #{LINUX_LIBS}"
330330
case PLATFORM when /darwin/

0 commit comments

Comments
 (0)