提交 10c037e3 编写于 作者: Y YuQing

bugfixed for rpm build

上级 7d5a540a
...@@ -56,7 +56,6 @@ rm -rf %{buildroot} ...@@ -56,7 +56,6 @@ rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/lib64/libfastcommon.so* /usr/lib64/libfastcommon.so*
/usr/lib/libfastcommon.so*
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
......
...@@ -72,7 +72,9 @@ install: ...@@ -72,7 +72,9 @@ install:
install -m 755 $(SHARED_LIBS) $(TARGET_LIB) install -m 755 $(SHARED_LIBS) $(TARGET_LIB)
install -m 644 $(HEADER_FILES) $(TARGET_PREFIX)/include/fastcommon install -m 644 $(HEADER_FILES) $(TARGET_PREFIX)/include/fastcommon
if [ ! -e $(TARGET_PREFIX)/lib/libfastcommon.so ]; then ln -s $(TARGET_LIB)/libfastcommon.so $(TARGET_PREFIX)/lib/libfastcommon.so; fi
@BUILDROOT=$$(echo "$(TARGET_PREFIX)" | grep BUILDROOT); \
if [ -z "$$BUILDROOT" ] && [ ! -e $(TARGET_PREFIX)/lib/libfastcommon.so ]; then ln -s $(TARGET_LIB)/libfastcommon.so $(TARGET_PREFIX)/lib/libfastcommon.so; fi
clean: clean:
rm -f $(ALL_OBJS) $(ALL_PRGS) $(ALL_LIBS) rm -f $(ALL_OBJS) $(ALL_PRGS) $(ALL_LIBS)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册