Skip to content

Commit

Permalink
Put package's libs flag after %{objs}
Browse files Browse the repository at this point in the history
In case LDFLAG contains "-Wl,--as-needed" or "--as-needed" is enabled by
default, "-l" flags should appear after objs specifiction.
  • Loading branch information
sorah committed Jan 9, 2017
1 parent 147c5c5 commit ee7fc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/mrbgem_spec.rake
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module MRuby
if system("pkg-config --exists #{escaped_package_query}")
cc.flags += [`pkg-config --cflags #{escaped_package_query}`.strip]
cxx.flags += [`pkg-config --cflags #{escaped_package_query}`.strip]
linker.flags += [`pkg-config --libs #{escaped_package_query}`.strip]
linker.flags_before_libraries += [`pkg-config --libs #{escaped_package_query}`.strip]
true
else
false
Expand Down

0 comments on commit ee7fc56

Please sign in to comment.