Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
a2356302
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
大约 1 年 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a2356302
编写于
5月 04, 2012
作者:
R
Rich Felker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update INSTALL file to reflect configure script usage
上级
64d2f8e8
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
23 addition
and
13 deletion
+23
-13
INSTALL
INSTALL
+23
-13
未找到文件。
INSTALL
浏览文件 @
a2356302
...
@@ -36,9 +36,16 @@ to compile and link programs and libraries against musl.
...
@@ -36,9 +36,16 @@ to compile and link programs and libraries against musl.
To install musl as an alternate libc, follow these steps:
To install musl as an alternate libc, follow these steps:
1. Edit config.mak to select your system's CPU architecture (i386,
1. Configure musl's build with a command similar to:
x86_64, or arm), installation prefix, location for the dynamic
./configure --prefix=/usr/local/musl --exec-prefix=/usr/local
linker, and other build preferences.
Refer to ./configure --help for details on other options. You may
change the install prefix if you like, but DO NOT set it to a
location that contains your existing libraries based on another
libc such as glibc or uClibc. If you do not intend to use dynamic
linking, you may disable it at this point via --disable-shared and
cut the build time in half. If you wish to use dynamic linking but
do not have permissions to write to /lib, you will need to set an
alternate dynamic linker location via --syslibdir.
2. Run "make". Parallel build is fully supported, so you can instead
2. Run "make". Parallel build is fully supported, so you can instead
use "make -j3" or so on SMP systems if you like.
use "make -j3" or so on SMP systems if you like.
...
@@ -46,10 +53,13 @@ To install musl as an alternate libc, follow these steps:
...
@@ -46,10 +53,13 @@ To install musl as an alternate libc, follow these steps:
3. Run "make install" as a user sufficient privileges to write to the
3. Run "make install" as a user sufficient privileges to write to the
destination.
destination.
4. Ensure that /etc/ld-musl-$ARCH.path (where $ARCH is replaced by
4. Create a file named /etc/ld-musl-$ARCH.path (where $ARCH is
i386, x86_64, etc. as appropriate) contains the correct search path
replaced by i386, x86_64, etc. as appropriate) containing the
for where you intend to install musl-linked shared library files.
correct colon-delimited search path for where you intend to install
This step can be skipped if you disabled dynamic linking.
musl-linked shared library files. If this file is missing, musl
will search the standard path, and you will encounter problems when
it attempts to load libraries linked against your host libc. Note
that this step can be skipped if you disabled dynamic linking.
After installing, you can use musl via the musl-gcc wrapper. For
After installing, you can use musl via the musl-gcc wrapper. For
example:
example:
...
@@ -81,8 +91,9 @@ main host system library directories.
...
@@ -81,8 +91,9 @@ main host system library directories.
Finally, it's worth noting that musl's include and lib directories in
Finally, it's worth noting that musl's include and lib directories in
the build tree are setup to be usable without installation, if
the build tree are setup to be usable without installation, if
necessary. Just modify the musl-gcc wrapper's libc_prefix variable to
necessary. Just modify the the paths in the spec file used by musl-gcc
point to the source/build tree.
(it's located at $prefix/lib/musl-gcc.specs) to point to the
source/build tree.
...
@@ -107,10 +118,9 @@ TO CONVERT IT TO BE A MUSL-BASED SYSTEM!!
...
@@ -107,10 +118,9 @@ TO CONVERT IT TO BE A MUSL-BASED SYSTEM!!
the search path before you move them, or your system will break
the search path before you move them, or your system will break
badly and you will not be able to continue.
badly and you will not be able to continue.
2. Edit musl's config.mak and set the installation prefix to the
2. Configure musl's build with a command similar to:
prefix your compiler toolchain is configured to search, probably
./configure --prefix=/usr --disable-gcc-wrapper
/usr. Set ARCH to match your CPU architecture, and change any other
Refer to ./configure --help for details on other options.
options as you see fit.
3. Run "make" to compile musl.
3. Run "make" to compile musl.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录