mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-11 23:14:20 +00:00
Add commit messages to patches as intended by the last bump to libtool which had to be reverted. This allows for a cleaner diff later, removing this clutter from the complex changes to patches that are required to bump to the latest libtool version. Ref: c377d874b ("libtool: bump to 2.4.6") Signed-off-by: Michael Pratt <mcpratt@pm.me>
38 lines
1.5 KiB
Diff
38 lines
1.5 KiB
Diff
From 7f2b8a1ab4fa1475eeeddfb84eb5b92594bfce43 Mon Sep 17 00:00:00 2001
|
|
From: Eneas U de Queiroz <cotequeiroz@gmail.com>
|
|
Date: Tue, 20 Jul 2021 16:54:12 -0300
|
|
Subject: openwrt: strip unsave directories from relink command
|
|
|
|
strip unsave directories from relink command, nuke every -L that looks
|
|
like /usr/lib or /lib
|
|
|
|
This was originally commited to openwrt by Jo-Philipp Wich
|
|
<jow@openwrt.org>.
|
|
|
|
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
|
|
|
|
--- a/libltdl/config/ltmain.m4sh
|
|
+++ b/libltdl/config/ltmain.m4sh
|
|
@@ -2186,6 +2186,9 @@ func_mode_install ()
|
|
relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
|
|
fi
|
|
|
|
+ relink_command=`$ECHO "$relink_command" | $SED "s%-L[[:space:]]*/lib[^[:space:]]*%%"`
|
|
+ relink_command=`$ECHO "$relink_command" | $SED "s%-L[[:space:]]*/usr/lib[^[:space:]]*%%"`
|
|
+
|
|
func_warning "relinking \`$file'"
|
|
func_show_eval "$relink_command" \
|
|
'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
|
|
--- a/libltdl/config/ltmain.sh
|
|
+++ b/libltdl/config/ltmain.sh
|
|
@@ -2973,6 +2973,9 @@ func_mode_install ()
|
|
relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
|
|
fi
|
|
|
|
+ relink_command=`$ECHO "$relink_command" | $SED "s%-L[[:space:]]*/lib[^[:space:]]*%%"`
|
|
+ relink_command=`$ECHO "$relink_command" | $SED "s%-L[[:space:]]*/usr/lib[^[:space:]]*%%"`
|
|
+
|
|
func_warning "relinking \`$file'"
|
|
func_show_eval "$relink_command" \
|
|
'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
|