summaryrefslogtreecommitdiff
path: root/build-aux/install-reloc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-01-17 09:29:19 +0100
committerBruno Haible <bruno@clisp.org>2009-01-17 09:29:19 +0100
commit1e15435909bc114220f48804c9e3852aa166f1da (patch)
tree3001e311743640f49a584612b92b13abbcd829dc /build-aux/install-reloc
parentf3ca432df308842637feef2ae3da0cd37acd4ddd (diff)
downloadgnulib-1e15435909bc114220f48804c9e3852aa166f1da.tar.gz
Remove debugging information left over by C compiler on MacOS X.
Diffstat (limited to 'build-aux/install-reloc')
-rwxr-xr-xbuild-aux/install-reloc8
1 files changed, 7 insertions, 1 deletions
diff --git a/build-aux/install-reloc b/build-aux/install-reloc
index 03e1f3f094..190dd64245 100755
--- a/build-aux/install-reloc
+++ b/build-aux/install-reloc
@@ -1,6 +1,6 @@
#!/bin/sh
# install-reloc - install a program including a relocating wrapper
-# Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005-2007, 2009 Free Software Foundation, Inc.
# Written by Bruno Haible <bruno@clisp.org>, 2003.
#
# This program is free software: you can redistribute it and/or modify
@@ -169,6 +169,12 @@ rm -f relocwrapper.o \
strerror.o \
c-ctype.o
test $rc = 0 || exit $?
+# Clean up debugging information left over by the native C compiler on MacOS X.
+rm -rf "$destprog.wrapper$exeext.dSYM"
+test $rc = 0 || exit $?
+
+# Strip wrapper.
+test "$strip_prog" = ':' || func_verbose "$strip_prog" "$destprog.wrapper$exeext" || exit $?
# Rename $destprog.wrapper -> $destprog -> $destprog.bin.
ln -f "$destprog$exeext" "$destprog.bin$exeext" \