@@ -397,7 +397,17 @@ valopt sysconfdir "/etc" "install system configuration files"
397397valopt datadir " ${CFG_PREFIX} /share" " install data"
398398valopt infodir " ${CFG_PREFIX} /share/info" " install additional info"
399399valopt mandir " ${CFG_PREFIX} /share/man" " install man pages in PATH"
400- valopt libdir " ${CFG_PREFIX} /lib" " install libraries"
400+
401+ # On windows we just store the libraries in the bin directory because
402+ # there's no rpath
403+ # FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
404+ LIBDIR_RELATIVE=lib
405+ if [ " $CFG_OSTYPE " = " pc-mingw32" ]
406+ then
407+ LIBDIR_RELATIVE=bin
408+ fi
409+
410+ valopt libdir " ${CFG_PREFIX} /${LIBDIR_RELATIVE} " " install libraries"
401411valopt rustlibdir " rustlib" " subdirectory name for rustc's libraries"
402412
403413# Validate Options
@@ -560,10 +570,10 @@ then
560570 step_msg " on OS X 10.9, forcing use of clang"
561571 CFG_ENABLE_CLANG=1
562572 putvar CFG_ENABLE_CLANG
563- else
564- # on OS X, with xcode 5 and newer, certain developers may have
573+ else
574+ # on OS X, with xcode 5 and newer, certain developers may have
565575 # cc, gcc and g++ point to a mixture of clang and gcc
566- # if so, this will create very strange build errors
576+ # if so, this will create very strange build errors
567577 # this last stanza is to detect some such problems and save the future rust
568578 # contributor some time solving that issue.
569579 # this detection could be generalized to other OSes aside from OS X
576586 # note that for xcode 5, g++ points to clang, not clang++
577587 if ! (( chk_cc gcc clang && chk_cc g++ clang) ||
578588 (chk_cc gcc gcc &&( chk_cc g++ g++ || chk g++ gcc)) ) then
579- err " the gcc and g++ in your path point to different compilers.
580- Check which versions are in your path with cc --version and g++ --version.
589+ err " the gcc and g++ in your path point to different compilers.
590+ Check which versions are in your path with cc --version and g++ --version.
581591To resolve this problem, either fix your PATH or run configure with --enable-clang"
582592 fi
583593
751761 done
752762done
753763
754- # On windows we just store the libraries in the bin directory because
755- # there's no rpath
756- # FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
757- CFG_LIBDIR=lib
758- if [ " $CFG_OSTYPE " = " pc-mingw32" ]
759- then
760- CFG_LIBDIR=bin
761- fi
762-
763764for h in $CFG_HOST
764765do
765766 for t in $CFG_TARGET
770771 make_dir $h /stage$i /bin
771772
772773 # host lib dir
773- make_dir $h /stage$i /$CFG_LIBDIR
774+ make_dir $h /stage$i /$LIBDIR_RELATIVE
774775
775776 # host test dir
776777 make_dir $h /stage$i /test
777778
778779 # target bin dir
779- make_dir $h /stage$i /$CFG_LIBDIR /$CFG_RUSTLIBDIR /$t /bin
780+ make_dir $h /stage$i /$LIBDIR_RELATIVE /$CFG_RUSTLIBDIR /$t /bin
780781
781782 # target lib dir
782- make_dir $h /stage$i /$CFG_LIBDIR /$CFG_RUSTLIBDIR /$t /$CFG_LIBDIR
783+ make_dir $h /stage$i /$LIBDIR_RELATIVE /$CFG_RUSTLIBDIR /$t /lib
783784 done
784785
785786 # Fix stage0:
786- make_dir $h /stage0/$CFG_LIBDIR /rustc/$t /bin
787- make_dir $h /stage0/$CFG_LIBDIR /rustc/$t /$CFG_LIBDIR
787+ make_dir $h /stage0/$LIBDIR_RELATIVE /rustc/$t /bin
788+ make_dir $h /stage0/$LIBDIR_RELATIVE /rustc/$t /$LIBDIR_RELATIVE
788789
789790 done
790791
@@ -1038,6 +1039,7 @@ putvar CFG_TARGET
10381039putvar CFG_C_COMPILER
10391040putvar CFG_LIBDIR
10401041putvar CFG_RUSTLIBDIR
1042+ putvar LIBDIR_RELATIVE
10411043putvar CFG_DISABLE_MANAGE_SUBMODULES
10421044putvar CFG_ANDROID_CROSS_PATH
10431045putvar CFG_MINGW32_CROSS_PATH
0 commit comments