summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-08-18 15:39:51 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-08-18 15:39:51 -0400
commit183f98dab90f5ad68e248c00e7b886be1088187e (patch)
tree056be867157f77db29b2d20fb97e01b74b6fcf0f
parent540fcd58a9ee611dd80f4116f7478e84ed1ca60b (diff)
downloadgpsd-183f98dab90f5ad68e248c00e7b886be1088187e.tar.gz
Clean up symlinks produced by PostActions.
-rw-r--r--SConstruct2
1 files changed, 2 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 9befb0b8..e7429cb2 100644
--- a/SConstruct
+++ b/SConstruct
@@ -599,6 +599,7 @@ def VersionedSharedLibrary(env, libname, libversion, lib_objs=[], parse_flags=[]
linkname = re.sub(suffix_re, linksuffix, lib)
env.AddPostAction(ilib, 'rm -f %s; ln -s %s %s' % (
linkname, lib, linkname))
+ env.Clean(lib, linkname)
return ilib
@@ -618,6 +619,7 @@ def VersionedSharedLibraryInstall(env, destination, libs):
for linksuffix in [shlib_suffix, major_name, minor_name]:
linkname = re.sub(suffix_re, linksuffix, lib)
env.AddPostAction(ilibs, 'cd %s; rm -f %s; ln -s %s %s' % (destination, linkname, lib, linkname))
+ env.Clean(lib, linkname)
return ilibs
if not env["shared"]: