mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
build system: avoid warnings about files without symbols on macOS
This commit is contained in:
parent
4e717815c7
commit
76f7246087
3
Rakefile
3
Rakefile
@ -181,12 +181,15 @@ def setup_globals
|
||||
|
||||
mocflags = $building_for[:macos] ? "-DSYS_APPLE" : $building_for[:windows] ? "-DSYS_WINDOWS" : ""
|
||||
|
||||
ranlibflags = $building_for[:macos] ? "-no_warning_for_no_symbols" : ""
|
||||
|
||||
$flags = {
|
||||
:cflags => cflags,
|
||||
:cxxflags => cxxflags,
|
||||
:ldflags => ldflags,
|
||||
:windres => windres,
|
||||
:moc => mocflags,
|
||||
:ranlib => ranlibflags,
|
||||
}
|
||||
|
||||
setup_macos_specifics if $building_for[:macos]
|
||||
|
@ -13,8 +13,8 @@ class Library < Target
|
||||
def create_specific_static
|
||||
file "#{@target}.a" => @objects do |t|
|
||||
FileUtils.rm_f t.name
|
||||
runq "ar", t.name, "#{c(:AR)} rc #{t.name} #{@objects.join(" ")}"
|
||||
runq "ranlib", t.name, "#{c(:RANLIB)} #{t.name}"
|
||||
runq "ar", t.name, "#{c(:AR)} crS #{t.name} #{@objects.join(" ")}"
|
||||
runq "ranlib", t.name, "#{c(:RANLIB)} #{$flags[:ranlib]} #{t.name}"
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user