generating slackbuild pgks in $ARCH=x86_64 for an x86 pc
Hello everyone,
I want to generate some slackbuilds (things I can't find in slackbuilds.org), related with audio mostly. I also would prefer to carry out the slackbuild scripts generation and the building of packages in a x86_64 pc. The slackbuilds are universal of course, but I need to the precompiled binary packages on a x86 pc. What do you propose as a best way to go about it? The safe way is to create a vm and do everything there. could (and should) I just define on the x86_64, Quote:
some other way? |
the script will be able to determine your architecture, so no need to define it explicitly (even though it also works)
|
but like I said, I want to prepare packages for another arch...
|
I usually compile packages for my 32 bit systems in a clean chroot of Slackware 32 bit on a machine running 64 bit Slackware with
Code:
ARCH=i486 |
Quote:
|
Quote:
|
You would need a cross compiler to build for other architectures. As far as I know Slackware distributes gcc without multitarget support. Just try gcc -dumpmachine to see available platforms.
You either need to rebuild gcc & binutils to enable cross-compiling or do a separate install of the target platform - in virtual machine or directly if natively supported by your hardware. Alien's gcc may also be used for x86 / x86_64 crosscompiling but I didn't personally tested. Maybe someone else may confirm/disprove it. |
All times are GMT -5. The time now is 02:48 PM. |