当前位置:网站首页>Makefile file configure executable file and cflags parameter
Makefile file configure executable file and cflags parameter
2022-04-21 21:41:00 【aningxiaoxixi】
In the use of configure When cross compiling , To specify the cross compilation tool chain . At the same time, you may need to specify some parameters for cross compilation .
for example
common Makfile file
CC = arm-poky-linux-gnueabi-gcc
OTHER_HEADERS = ../../mjpg_streamer.h ../../utils.h ../output.h ../input.h
CFLAGS += -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC
CFLAGS += -march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/book/Downloads/sysroots/cortexa7hf-neon-poky-linux-gnueabi
#CFLAGS += -g
#CFLAGS += -DDEBUG
Use in file CFLAGS Specify the parameters
that ./configure Also use CFLAGS Specified
for example :
./configure --host=arm-poky-linux-gnueabi --prefix=/home/book/Music/1111 --enable-shared --enable-static CFLAGS="-march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/book/Downloads/sysroots/cortexa7hf-neon-poky-linux-gnueabi"
版权声明
本文为[aningxiaoxixi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204212133466661.html
边栏推荐
- Dynamically connecting data sources and transaction rollback
- 安洵杯2021_Crypto_复现
- "Three wars" Hong Kong stock exchange, and "Guo Qi Wang Hong" green tea restaurant can't tell a new story?
- TCP/IP协议
- Docker MySQL scheduled backup
- Gan remake 2, which seems to be fun -- keras built srgan platform to improve the super-resolution of pictures
- Cyclone IV E系列介绍
- 动态规划:完全背包问题
- (亲测有效)Oracle在linux下命令行无法使用退格键退格,无法使用上下键切换历史命令的解决办法,会出现乱码
- FFmpeg连载1-环境搭建
猜你喜欢

Common SQL optimization

Workflow engine parameter setting and business engine

短视频直播模式让偏远地区农产品“走出去”

可视化图表告诉你,《人世间》《余生,请多指教》到底爆没爆?

联想公布ESG新进展:承诺2025年全线计算机产品100%含有再生塑料

Browser principle interview questions

JMeter (XVI) - from introduction to mastery - JMeter preprocessor (detailed tutorial)

Neural network learning record 57 -- introduction, advantages and disadvantages of various activation functions

浏览器原理面试题

Redis高级:数据删除与淘汰策略、主从复制、哨兵模式、集群cluster、企业级解决方案
随机推荐
力扣解法汇总824-山羊拉丁文
02. Use of gcc compiler
[error] content length vs downloaded bytes
Add subtitles to PR video
Alibaba cloud OSS, user authentication and patient
Common network tools 4: SG broadband tools
helm安装jenkins(官方)
【史上最全 BAT 必问高并发总结】
On the Oracle client of Linux, enter the SQL statement and Oracle not available process ID: 0 session ID: 0 serial number: 0 appears
How to set the South parameter when streaming from libvlc library
Bailian3726 Xiandao seeking medicine [BFS]
动态规划:完全背包问题
[spark] (task5) fundamentals of sparkml (classification | clustering model)
Successful cases of project management system development
Bailian4006 little rabbit picks up gold coins [simulation]
2022 safety officer-b certificate operation certificate examination question bank and simulation examination
2022R1快开门式压力容器操作操作证考试题库模拟考试平台操作
AES topics involved in CTF crypto
"Three wars" Hong Kong stock exchange, and "Guo Qi Wang Hong" green tea restaurant can't tell a new story?
Neural network learning small record 56 -- the principle and function of batch normalization layer