Permalink
Browse files

Put package's libs flag after %{objs}

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 ee7fc56dd0d7bd2aa8be8a24290ae1de32b0dcec
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/mrbgem_spec.rake
View
@@ -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

0 comments on commit ee7fc56

Please sign in to comment.