comparison build-aux/install-reloc @ 11026:f7a9849b6394

Remove debugging information left over by C compiler on MacOS X.
author Bruno Haible <bruno@clisp.org>
date Sat, 17 Jan 2009 09:29:19 +0100
parents 827a525c7057
children fa0076bdc391
comparison
equal deleted inserted replaced
11025:6d85e95ca18f 11026:f7a9849b6394
1 #!/bin/sh 1 #!/bin/sh
2 # install-reloc - install a program including a relocating wrapper 2 # install-reloc - install a program including a relocating wrapper
3 # Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. 3 # Copyright (C) 2003, 2005-2007, 2009 Free Software Foundation, Inc.
4 # Written by Bruno Haible <bruno@clisp.org>, 2003. 4 # Written by Bruno Haible <bruno@clisp.org>, 2003.
5 # 5 #
6 # This program is free software: you can redistribute it and/or modify 6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by 7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or 8 # the Free Software Foundation; either version 3 of the License, or
167 relocatable.o \ 167 relocatable.o \
168 setenv.o \ 168 setenv.o \
169 strerror.o \ 169 strerror.o \
170 c-ctype.o 170 c-ctype.o
171 test $rc = 0 || exit $? 171 test $rc = 0 || exit $?
172 # Clean up debugging information left over by the native C compiler on MacOS X.
173 rm -rf "$destprog.wrapper$exeext.dSYM"
174 test $rc = 0 || exit $?
175
176 # Strip wrapper.
177 test "$strip_prog" = ':' || func_verbose "$strip_prog" "$destprog.wrapper$exeext" || exit $?
172 178
173 # Rename $destprog.wrapper -> $destprog -> $destprog.bin. 179 # Rename $destprog.wrapper -> $destprog -> $destprog.bin.
174 ln -f "$destprog$exeext" "$destprog.bin$exeext" \ 180 ln -f "$destprog$exeext" "$destprog.bin$exeext" \
175 || { rm -f "$destprog.bin$exeext" \ 181 || { rm -f "$destprog.bin$exeext" \
176 && cp -p "$destprog$exeext" "$destprog.bin$exeext"; } \ 182 && cp -p "$destprog$exeext" "$destprog.bin$exeext"; } \