summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorSorah Fukumori <[email protected]>2017-01-09 10:08:06 +0900
committerSorah Fukumori <[email protected]>2017-01-09 10:08:06 +0900
commitee7fc56dd0d7bd2aa8be8a24290ae1de32b0dcec (patch)
treecc2d2d773f08a73210cedeac636132eaa679773f /tasks
parent147c5c54416934aea9e9dd1bc83ff1e1e98a61f8 (diff)
downloadmruby-ee7fc56dd0d7bd2aa8be8a24290ae1de32b0dcec.tar.gz
mruby-ee7fc56dd0d7bd2aa8be8a24290ae1de32b0dcec.zip
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.
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mrbgem_spec.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/mrbgem_spec.rake b/tasks/mrbgem_spec.rake
index 0aeeddaf1..3053c3d49 100644
--- a/tasks/mrbgem_spec.rake
+++ b/tasks/mrbgem_spec.rake
@@ -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