diff options
author | CoprDistGit <infra@openeuler.org> | 2024-09-24 13:52:26 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-09-24 13:52:26 +0000 |
commit | 9679917a175091b0d437429157313f0ae5901c97 (patch) | |
tree | 8fe907a0ffcb4dd106de0374c859180be653a400 /fix-libtool-from-moving-options-after-libs | |
parent | d68770f6939ab160ff27ec4e65ccc88cd3677bd0 (diff) |
automatic import of openEuler-rpm-config
Diffstat (limited to 'fix-libtool-from-moving-options-after-libs')
-rw-r--r-- | fix-libtool-from-moving-options-after-libs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fix-libtool-from-moving-options-after-libs b/fix-libtool-from-moving-options-after-libs new file mode 100644 index 0000000..134a2e3 --- /dev/null +++ b/fix-libtool-from-moving-options-after-libs @@ -0,0 +1,15 @@ +#!/usr/bin/sh + +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 + + sed -i \ + -e 's,$deplibs $compiler_flags,$compiler_flags $deplibs,' \ + -e 's,$deplibs $postdep_objects $compiler_flags,$compiler_flags $deplibs $postdep_objects,' \ + $CONFIGURE_TOP/configure +fi + |