Change zlibpkg.rb to strip debug symbol of shared library

parent 5666929e
require 'package' require 'package'
class Zlibpkg < Package class Zlibpkg < Package
version '1.2.11' version '1.2.11-1'
source_url 'http://www.zlib.net/zlib-1.2.11.tar.gz' source_url 'http://www.zlib.net/zlib-1.2.11.tar.gz'
source_sha1 'e6d119755acdf9104d7ba236b1242696940ed6dd' source_sha1 'e6d119755acdf9104d7ba236b1242696940ed6dd'
...@@ -12,8 +12,12 @@ class Zlibpkg < Package ...@@ -12,8 +12,12 @@ class Zlibpkg < Package
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
# remove static library since there is no configuration option to not create it. # remove static library since there is no configuration option to not create it.
system "rm", "#{CREW_DEST_DIR}/usr/local/lib/libz.a" system "rm", "#{CREW_DEST_DIR}/usr/local/lib/libz.a"
# strip library
system "strip -S #{CREW_DEST_DIR}/usr/local/lib/libz.so.*"
end end
def self.check def self.check
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment