summaryrefslogtreecommitdiff
path: root/fix-libtool-from-moving-options-after-libs
diff options
context:
space:
mode:
Diffstat (limited to 'fix-libtool-from-moving-options-after-libs')
-rw-r--r--fix-libtool-from-moving-options-after-libs12
1 files changed, 6 insertions, 6 deletions
diff --git a/fix-libtool-from-moving-options-after-libs b/fix-libtool-from-moving-options-after-libs
index 134a2e3..1f4d5ad 100644
--- a/fix-libtool-from-moving-options-after-libs
+++ b/fix-libtool-from-moving-options-after-libs
@@ -1,15 +1,15 @@
#!/usr/bin/sh
+# Copyright 2011-2023, Mageia
+# Modified 2024, Funda Wang <fundawang@yeah.net>
+# Licensed under GPL-2.0-or-later
CONFIGURE_TOP="${1:-.}"
if [ -e $CONFIGURE_TOP/configure ] && grep -q -F '$deplibs $compiler_flags' $CONFIGURE_TOP/configure; then
- echo "Fixing libtool inside configure to pass -Wl,xxx options before libraries"
-
- # a similar patch has been applied in libtool in libtool package (#47273)
- # but this works even if autoreconf is not called
+ echo "Fixing libtool inside configure to pass -Wl,xxx options earliest"
sed -i \
- -e 's,$deplibs $compiler_flags,$compiler_flags $deplibs,' \
- -e 's,$deplibs $postdep_objects $compiler_flags,$compiler_flags $deplibs $postdep_objects,' \
+ -e 's,$libobjs $deplibs $compiler_flags,$compiler_flags $libobjs $deplibs,' \
+ -e 's,$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags,$compiler_flags $predep_objects $libobjs $deplibs $postdep_objects,' \
$CONFIGURE_TOP/configure
fi