aboutsummaryrefslogtreecommitdiffstats
path: root/build_tools
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2010-04-08 16:35:10 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2010-04-08 16:35:10 +0000
commitc39bfddbfd1fcb7bb65c61e9592d024cc16d87d0 (patch)
tree8954c013acd2b79f5eb909869d07ac8bd3005b20 /build_tools
parentbfb86188c05b186db5cb26b7a812ac55304e2924 (diff)
Ensure that linker version scripts (used for symbol export control) always exist.
Using wildcard matching in the Makefile is not adequate to determine whether an export file should exist for a module or not, so instead we'll just create one if the module needs one, or copy the default one if it does not. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@256428 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/make_linker_version_script5
1 files changed, 3 insertions, 2 deletions
diff --git a/build_tools/make_linker_version_script b/build_tools/make_linker_version_script
index 8f3c2bb0a..871ff4724 100755
--- a/build_tools/make_linker_version_script
+++ b/build_tools/make_linker_version_script
@@ -1,4 +1,5 @@
#!/bin/sh
-test -f ${1}.exports.in && ${AWK} "{sub(\"LINKER_SYMBOL_PREFIX\", \"${2}\"); print;}" ${1}.exports.in > ${1}.exports
-test -f ${1}.exports.in || rm -f ${1}.exports
+test -f ${1}.exports.in && ${AWK} "{sub(\"LINKER_SYMBOL_PREFIX\", \"${2}\"); print;}" ${1}.exports.in > ${1}.exports && exit 0
+test -f ${1}.exports.in || rm -f ${1}.exports && cp ${3}/default.exports ${1}.exports && exit 0
+