[PATCH 2/2] erofs-utils: let erofs-utils use shared libraries if it can

Gao Xiang gaoxiang25 at huawei.com
Wed Dec 19 15:05:16 AEDT 2018


As an option, add LDFLAGS=--static LIBS=-Wl,--static
in front of ./configure to force static compilation as before.

ex,
$ LDFLAGS=--static LIBS=-Wl,--static ./configure
$ make

Signed-off-by: Gao Xiang <gaoxiang25 at huawei.com>
---
 Makefile.am | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index cef847d..4381d3d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,7 +25,6 @@ noinst_HEADERS = erofs_config.h  \
 				 mkfs_file.h
 
 mkfs_erofs_CFLAGS = -Wall -Werror -DEROFS_MKFS_VERSION=\"v1.0\"
-mkfs_erofs_LDFLAGS  = --static
 ACLOCAL_AMFLAGS = -I m4
 
 if SUPPORT_LARG_FILE_AT_BIT32
-- 
2.14.4



More information about the Linux-erofs mailing list