summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7de57cc)
- ar utility can vary depeding on build platform.
- do not call gcc directly, use $(CC)
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: Ia60752b40531886d805a095c9f571e565bcd0e88
Reviewed-on: http://review.whamcloud.com/3917
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Liu Xuezhao <xuezhao.liu@emc.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
+AC_CHECK_TOOLS(AR, ar)
+
# build static and shared lib lustreapi
liblustreapi.a : liblustreapitmp.a
rm -f liblustreapi.a liblustreapi.so
# 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
mv liblustreapitmp.a liblustreapi.a
install-exec-hook: liblustreapi.so