summaryrefslogtreecommitdiff
path: root/driver/xf86-input-void/ltmain.sh
diff options
context:
space:
mode:
Diffstat (limited to 'driver/xf86-input-void/ltmain.sh')
-rw-r--r--driver/xf86-input-void/ltmain.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/driver/xf86-input-void/ltmain.sh b/driver/xf86-input-void/ltmain.sh
index fccf69e28..248cd4047 100644
--- a/driver/xf86-input-void/ltmain.sh
+++ b/driver/xf86-input-void/ltmain.sh
@@ -2127,6 +2127,17 @@ EOF
;;
esac
for pass in $passes; do
+ # The preopen pass in lib mode reverses $deplibs; put it back here
+ # so that -L comes before libs that need it for instance...
+ if test "$linkmode,$pass" = "lib,link"; then
+ ## FIXME: Find the place where the list is rebuilt in the wrong
+ ## order, and fix it there properly
+ tmp_deplibs=
+ for deplib in $deplibs; do
+ tmp_deplibs="$deplib $tmp_deplibs"
+ done
+ deplibs="$tmp_deplibs"
+ fi
if test "$linkmode,$pass" = "lib,link" ||
test "$linkmode,$pass" = "prog,scan"; then
libs="$deplibs"