From f28cf26bddbda60587815d7a0eef7d75c46950c6 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Mon, 10 Sep 2012 14:10:47 +0400 Subject: [PATCH] LU-1869 build: gcc/ar utility can vary - ar utility can vary depeding on build platform. - do not call gcc directly, use $(CC) Signed-off-by: Alex Zhuravlev Change-Id: Ia60752b40531886d805a095c9f571e565bcd0e88 Reviewed-on: http://review.whamcloud.com/3917 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Liu Xuezhao Reviewed-by: Andreas Dilger --- configure.ac | 2 ++ lustre/utils/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9574d0c..d740004 100644 --- a/configure.ac +++ b/configure.ac @@ -18,4 +18,6 @@ AC_PROG_CC AM_PROG_AS +AC_CHECK_TOOLS(AR, ar) + LB_CONFIGURE diff --git a/lustre/utils/Makefile.am b/lustre/utils/Makefile.am index f207536..359b690 100644 --- a/lustre/utils/Makefile.am +++ b/lustre/utils/Makefile.am @@ -83,7 +83,7 @@ liblustreapitmp_a_SOURCES = liblustreapi.c $(L_IOCTL) $(L_KERNELCOMM) # build static and shared lib lustreapi liblustreapi.a : liblustreapitmp.a rm -f liblustreapi.a liblustreapi.so - gcc -shared -o liblustreapi.so `ar -t liblustreapitmp.a` + $(CC) $(LDFLAGS) -shared -o liblustreapi.so `$(AR) -t liblustreapitmp.a` mv liblustreapitmp.a liblustreapi.a install-exec-hook: liblustreapi.so -- 1.8.3.1