tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Cross-compiling pkgsrc
> On Sep 13, 2023, at 9:45 AM, Brook Milligan <brook%nmsu.edu@localhost> wrote:
>
>> On Sep 13, 2023, at 8:18 AM, Brook Milligan <brook%nmsu.edu@localhost> wrote:
>>
>> I’m trying to cross-compile pkgsrc again now that I have the NetBSD host set up with the results of build.sh.
>>
>> I’m following information in
>>
>> https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/doc/HOWTO-use-crosscompile
>>
>> with an unprivileged bootstrap of pkgsrc.
OK, I’ve tracked the problems down to operator error; sorry.
For the record, I set the following in mk.conf:
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
MACHINE_ARCH= earmv7hf
.endif
.if empty(USE_CROSS_COMPILE:M[yY][eE][sS])
CFLAGS+= -march=native
CXXFLAGS+= -march=native
FFLAGS+= -march=native
.endif
I normally set -march=native for potential performance, but forgot that of course that cannot work for cross-compiling. Perhaps a reminder is relevant in the file linked above?
There remain problems with specific packages, but those will be new threads, as cross-compiling now generally works.
Cheers,
Brook
Home |
Main Index |
Thread Index |
Old Index