Created
September 28, 2011 22:47
-
-
Save 2bits/1249467 to your computer and use it in GitHub Desktop.
flac-1.2.1 Shell script modifies libtool doing -rpath workaround for hardwiring locations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- fixrpath.sh 1969-12-31 19:00:00.000000000 -0500 | |
+++ fixrpath.sh 2008-02-18 10:51:07.000000000 -0500 | |
@@ -0,0 +1,28 @@ | |
+#!/bin/sh | |
+# $Id: fixrpath,v 1.1 2004/05/27 10:48:25 kobras Exp $ | |
+# libtool -rpath workaround based on a suggestion by Yann Dirson | |
+# <dirson <at> debian.org> | |
+# | |
+# It is supposed to be inserted in configure.in, but I didn't want | |
+# to re-run autoconf (since that bloats the Debian diff unnecessarily), | |
+# so I just patch libtool after running configure. -- Richard Braakman | |
+# <dark <at> xs4all.nl> | |
+# | |
+# The version of libtool included with LessTif unfortunately insists on | |
+# linking with -rpath, i.e. hardwiring locations. This is not desirable. | |
+# | |
+# The dummy define is improbable enough not to conflict with anything; it is | |
+# just here to fool libtool by making it believe it gave some useful info to | |
+# gcc. | |
+# | |
+# This will also patch the generated libtool to explicitly | |
+# link libraries against the libraries they depend on. (particularly libc) | |
+ | |
+for i in libtool libtool-disable-static; do | |
+sed < $i > $i-2 \ | |
+ -e 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' \ | |
+ -e '/^archive_cmds="/s/"$/ \$deplibs"/' | |
+mv $i-2 $i | |
+chmod 755 $i | |
+done | |
+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment