Openssl 交叉编译指定编译器

配置openssl时候可以用config或者Configure来进行配置。

export TOPDIR=$(PWD)

export CROSS_COMPILE=$(TOPDIR)/arm-gcc/bin/arm-buildroot-linux-uclibcgnueabi-
export PATH:=$(TOPDIR)/arm-gcc/bin/:$(TOPDIR)/arm-gcc/usr/bin/:${PATH}

在改动已有的libssl编译库移植时,需要重新指定交叉编译链。

可以只增加一句即可 os/compiler:${CROSS_COMPILE}gcc

原文地址:https://www.cnblogs.com/fogcell/p/8715544.html