facebook/zstd

[Documentation] Clarify the variables that affect installation

开放

#3,146 创建于 2022年5月27日

 (6 条评论) (0 个反应) (1 位负责人)C (2,481 个派生)batch import
Install issuesdocumentationhelp wanted

仓库指标

星标
 (27,100 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Describe the bug The Makefile is very unclear about the destination directory.

To Reproduce Extract the tarball and run "make" and then "make install" seems to try to create files in the system directories.

Expected behavior There should be a DESTDIR target or a configure script or perhaps even some autotools/automake/autoconf input that allows a configure script to exist.

Desktop (please complete the following information): Red Hat Enterprise Linux 6 with gcc 12.1.0 and no CFLAGS other than -std=iso9899:2011 -fno-builtin -g -O0 -m64

Build system is whatever you provide in the tarball. The Makefile.

Software that is compiled and then tested with some testsuite should be optionally installed into a non-system directory.

I see a DESTDIR here :

https://github.com/facebook/zstd/blob/9a5e73c74ef2d621992154306ab1ab6ba44ac8fa/lib/Makefile#L259

However that is not in the main Makefile.

贡献者指南