mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-24 22:42:58 +02:00
7 lines
230 B
Bash
Executable file
7 lines
230 B
Bash
Executable file
#!/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
|