Index: Python-3.5.3/Misc/python-config.sh.in =================================================================== --- Python-3.5.3/Misc/python-config.sh.in +++ Python-3.5.3/Misc/python-config.sh.in 2018-02-23 00:57:18.360395952 +0100 @@ -96,7 +96,7 @@ if [ "$PY_ENABLE_SHARED" = "0" ] ; then LIBPLUSED="-L$LIBPL" fi - echo "$LIBPLUSED -L$libdir $LIBS $LINKFORSHAREDUSED" + echo "-L$libdir $LIBPLUSED $LIBS $LINKFORSHAREDUSED" ;; --extension-suffix) echo "$SO"