]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
First try of automatic fix of libtool rpath bug.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Feb 2010 22:22:43 +0000 (23:22 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Feb 2010 22:22:43 +0000 (23:22 +0100)
pkgs/Functions

index 504d101f6da02bc80132aa12f88ddb4a4c91afa5..9f8b7b146d5fe1089113fa404ebebb522ce922e2 100644 (file)
@@ -36,6 +36,15 @@ define DO_PYTHON_COMPILE
        @find $(BUILDROOT) -name "*.py" | xargs $(DIR_TOOLS)/py-compile
 endef
 
+define DO_FIX_LIBTOOL
+       # remove rpath from libtool
+       @if [ -e "libtool" ]; then \
+               sed -i libtool \
+                       -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
+                       -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'; \
+       fi
+endef
+
 define DO_PREPARE
        @echo "#####################################################################"
        @echo "# $(PKG_NAME) - Preparation started"
@@ -107,6 +116,7 @@ define STAGE_BUILD
                ./configure \
                        $(CONFIGURE_OPTIONS)
 
+       $(DO_FIX_LIBTOOL)
        $(STAGE_CONFIGURE_CMDS)
 
        cd $(DIR_APP) && make $(PARALLELISMFLAGS)