Skip to content

Commit

Permalink
bug fix: fix compiler / linker options order.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmurakam committed Aug 24, 2010
1 parent a572bec commit 87e3746
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,3 +1,6 @@
2010-8-24 ver 1.0.5 : Takuya Murakami <tmurakam at tmurakam.org>
* modify compiler/linker path argument order

2010-8-19 ver 1.0.4 : Takuya Murakami <tmurakam at tmurakam.org> 2010-8-19 ver 1.0.4 : Takuya Murakami <tmurakam at tmurakam.org>
* add "-rpath /system/lib" option for linker. * add "-rpath /system/lib" option for linker.


Expand Down
2 changes: 1 addition & 1 deletion Makefile
@@ -1,4 +1,4 @@
VERSION = 1.0.4 VERSION = 1.0.5


DESTDIR = /usr/local DESTDIR = /usr/local


Expand Down
13 changes: 7 additions & 6 deletions droid-gcc
Expand Up @@ -3,7 +3,7 @@
=begin =begin
droid-wrapper : Android toolchain wrapper script droid-wrapper : Android toolchain wrapper script
version 1.0.4 version 1.0.5
Copyright 2009-2010, Takuya Murakami, Yoshiaki Okuyama. Copyright 2009-2010, Takuya Murakami, Yoshiaki Okuyama.
Expand Down Expand Up @@ -101,6 +101,7 @@ link_args =
"-Wl,-z,nocopyreloc", "-Wl,-z,nocopyreloc",
"-Wl,--no-undefined", "-Wl,--no-undefined",
"-Wl,-rpath-link=#{alib}", "-Wl,-rpath-link=#{alib}",
"-Wl,-rpath,/system/lib",
"-L#{alib}", "-L#{alib}",
"-nostdlib", "-nostdlib",
"#{alib}/crtbegin_dynamic.o", "#{alib}/crtbegin_dynamic.o",
Expand Down Expand Up @@ -164,20 +165,20 @@ argv = ARGV


case mode case mode
when "compile" when "compile"
argv = cflags + ARGV argv += cflags


when "link" when "link"
if (!isLD) if (!isLD)
argv = cflags + link_args + ARGV argv += cflags + link_args
else else
argv = link_args + ARGV argv += link_args
end end


when "shlib" when "shlib"
if (!isLD) if (!isLD)
argv = cflags + shlib_args + ARGV argv += cflags + shlib_args
else else
argv = shlib_args + ARGV argv += shlib_args
end end
end end


Expand Down

0 comments on commit 87e3746

Please sign in to comment.