void-packages/srcpkgs/linux4.0/files/mv-debug

8 lines
230 B
Plaintext
Raw Normal View History

2015-04-12 11:08:23 +02:00
#!/bin/sh
mod=$1
mkdir -p usr/lib/debug/${mod%/*}
$OBJCOPY --only-keep-debug --compress-debug-sections $mod usr/lib/debug/$mod
$OBJCOPY --add-gnu-debuglink=${DESTDIR}/usr/lib/debug/$mod $mod
$STRIP --strip-debug $mod
gzip -9 $mod