gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH 1/2] Run chrpath only if building shared libraries.


From: Beat Bolli
Subject: [gpsd-dev] [PATCH 1/2] Run chrpath only if building shared libraries.
Date: Wed, 2 Nov 2011 12:36:42 +0100

---
 SConstruct |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/SConstruct b/SConstruct
index d367403..f8c56f4 100644
--- a/SConstruct
+++ b/SConstruct
@@ -381,7 +381,6 @@ config = Configure(env, custom_tests = { 'CheckPKG' : 
CheckPKG,
                                          'CheckExecutable' : CheckExecutable,
                                          'CheckXsltproc' : CheckXsltproc})
 
-# The build is fragile when chrpath is not present, so we've made it mandatory.
 if config.CheckExecutable('$CHRPATH -v', 'chrpath'):
     # Tell generated binaries to look in the current directory for
     # shared libraries so we can run tests without hassle. Should be
@@ -1124,7 +1123,8 @@ binaryinstall.append(LibraryInstall(env, 
installdir('libdir'), compiled_gpsdlib)
 if qt_env:
     binaryinstall.append(LibraryInstall(qt_env, installdir('libdir'), 
compiled_qgpsmmlib))
 
-env.AddPostAction(binaryinstall, '$CHRPATH -r "%s" "$TARGET"' % 
installdir('libdir'))
+if env["shared"]:
+    env.AddPostAction(binaryinstall, '$CHRPATH -r "%s" "$TARGET"' % 
installdir('libdir'))
 
 if not env['debug'] and not env['profiling'] and env['strip']:
     env.AddPostAction(binaryinstall, '$STRIP $TARGET')
-- 
1.7.7



reply via email to

[Prev in Thread] Current Thread [Next in Thread]