-
-
Save anonymous/9df3804fa51b9bf78faf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/debhelper/dh_ocaml b/debhelper/dh_ocaml | |
index de4535b..5f93265 100755 | |
--- a/debhelper/dh_ocaml | |
+++ b/debhelper/dh_ocaml | |
@@ -369,6 +369,20 @@ foreach my $package (keys(%dev_packages), @binary_packages) | |
}; | |
}; | |
+verbose_print "+++ Strip static libraries +++"; | |
+foreach my $package (keys(%dev_packages)) { | |
+ find(sub { | |
+ if (-f $_ && /\.a$/) { | |
+ if (get_buildoption('nostrip')) { | |
+ verbose_print("Not stripping $_ due to nostrip") | |
+ } else { | |
+ doit(cross_command("strip"), "--enable-deterministic-archives", | |
+ "--strip-debug", $_); | |
+ } | |
+ } | |
+ }, tmpdir($package)); | |
+} | |
+ | |
verbose_print "+++ Compute .md5sums and lintian files for dev packages +++"; | |
my %oinfo; | |
foreach my $package (keys(%dev_packages)) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment