mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user