1 |
On 11-10-2011 00:50:54 -0400, Mike Frysinger wrote: |
2 |
> If people use strip from the elfutils package, take advantage of some of |
3 |
> its neat features (like splitting + stripping in one step). |
4 |
|
5 |
> +# See if we're using GNU binutils or elfutils for stripping |
6 |
> +case $(${STRIP} --version) in |
7 |
> +*elfutils*) # dev-libs/elfutils |
8 |
> + # elfutils default behavior is always safe, so don't need to specify |
9 |
> + # any flags at all |
10 |
> + SAFE_STRIP_FLAGS="" |
11 |
> + DEF_STRIP_FLAGS="--remove-comment" |
12 |
> + SPLIT_STRIP_FLAGS="-f" |
13 |
> + ;; |
14 |
> +*) # assume binutils |
15 |
|
16 |
For the sake of it, can we try to detect GNU binutils here? Our |
17 |
profiles restrict strip, so no immediate problem here if not. |
18 |
|
19 |
% strip --version |
20 |
strip: unrecognized option: --version |
21 |
Usage: strip [-AnuSXx] [-] [-d filename] [-s filename] [-R filename] [-o |
22 |
output] file [...] |
23 |
|
24 |
|
25 |
-- |
26 |
Fabian Groffen |
27 |
Gentoo on a different level |