Multilib: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
Created page with "Exherbo supports multilib natively, but it's not enabled by default yet. First we enable the multilib profile by changing the profiles variable in arbor.conf. {{File|/etc/pal..."
 
Tgurr (talk | contribs)
No edit summary
Line 7: Line 7:
profiles = ${location}/profiles/amd64/multilib
profiles = ${location}/profiles/amd64/multilib
...
...
</pre>
}}
Remove the CHOST entry from bashrc and either set C{,XX}FLAGS which apply to all C targets, or define individual ones.
{{File|/etc/paludis/bashrc|
<pre>
CFLAGS="-march=native -pipe -O2"
CXXFLAGS="${CFLAGS}"
#MULTIBUILD_C_32_USER_CFLAGS="-march=native -pipe -O2"
#MULTIBUILD_C_32_USER_CXXFLAGS="${MULTIBUILD_C_32_USER_CFLAGS}"
#MULTIBUILD_C_64_USER_CFLAGS="-march=native -pipe -O2"
#MULTIBUILD_C_64_USER_CXXFLAGS="${MULTIBUILD_C_64_USER_CFLAGS}"
</pre>
</pre>
}}
}}

Revision as of 01:54, 19 December 2012

Exherbo supports multilib natively, but it's not enabled by default yet.

First we enable the multilib profile by changing the profiles variable in arbor.conf.

File: /etc/paludis/repositories/arbor.conf
...
profiles = ${location}/profiles/amd64/multilib
...

Remove the CHOST entry from bashrc and either set C{,XX}FLAGS which apply to all C targets, or define individual ones.

File: /etc/paludis/bashrc
CFLAGS="-march=native -pipe -O2"
CXXFLAGS="${CFLAGS}"

#MULTIBUILD_C_32_USER_CFLAGS="-march=native -pipe -O2"
#MULTIBUILD_C_32_USER_CXXFLAGS="${MULTIBUILD_C_32_USER_CFLAGS}"
#MULTIBUILD_C_64_USER_CFLAGS="-march=native -pipe -O2"
#MULTIBUILD_C_64_USER_CXXFLAGS="${MULTIBUILD_C_64_USER_CFLAGS}"