This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch]: Keep for multilib-capable mingw builds lib/ as default.


Hello,

As for mingw 32-bit the library location has to remain /lib, but as
/lib is binutils' library location and therefore always
default-target's library path, I changed configuration for -w64-
(multilib-capable mingw targets) so, that /lib remains folder for
default-target's location.
This makes for an i686 defaulted multilib location /lib for 32-bit and
/lib64 for 64-bit libraries and objects files. For a 64-bit defaulted
multilib location /lib for 64-bit and /lib32 for 32-bit libraries and
object-files.

Tested for i686-w64-mingw32 and x86_64-w64-mingw32. I'll apply this
patch if there aren't any objections about this.

ChangeLog

        * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose t-mingw-w64
        or t-mingw-w32 for multilib configuration.
        * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
        * config/i386/t-mingw-w32: New.



-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

Attachment: fixmulti.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]