зеркало из https://github.com/github/memcached.git
Use -Os.
This commit is contained in:
Родитель
5d26c00f20
Коммит
e22e8d4329
|
@ -1,4 +1,6 @@
|
|||
|
||||
v0.18. Compile with -Os.
|
||||
|
||||
v0.17.2. Fix realloc bug on Linux that got regressed.
|
||||
|
||||
v0.17.1. Ruby 1.9 compatibility.
|
||||
|
|
|
@ -57,6 +57,8 @@ if !ENV["EXTERNAL_LIB"]
|
|||
puts "Setting debug flags for libmemcached."
|
||||
cflags << " -O0 -ggdb -DHAVE_DEBUG"
|
||||
extraconf << " --enable-debug"
|
||||
else
|
||||
cflags << " -Os"
|
||||
end
|
||||
|
||||
puts(cmd = "env CFLAGS='#{cflags}' LDFLAGS='#{ldflags}' ./configure --prefix=#{HERE} --without-memcached --disable-shared --disable-utils #{extraconf} 2>&1")
|
||||
|
@ -87,7 +89,7 @@ if ENV['DEBUG']
|
|||
puts "Setting debug flags for gem."
|
||||
$CFLAGS << " -O0 -ggdb -DHAVE_DEBUG"
|
||||
else
|
||||
$CFLAGS << " -O3"
|
||||
$CFLAGS << " -Os"
|
||||
end
|
||||
|
||||
if DARWIN
|
||||
|
|
Загрузка…
Ссылка в новой задаче