From: Alex Zhuravlev Date: Mon, 10 Sep 2012 10:10:47 +0000 (+0400) Subject: LU-1869 build: gcc/ar utility can vary X-Git-Tag: 2.3.51~114 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=f28cf26bddbda60587815d7a0eef7d75c46950c6 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 --- 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