diff --git a/libfastcommon.spec b/libfastcommon.spec index 2321777efd3f9d7d55941ad39c2ed33314217b16..990662d9e164786b9d226045f98ef287693c48e6 100644 --- a/libfastcommon.spec +++ b/libfastcommon.spec @@ -56,7 +56,6 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) /usr/lib64/libfastcommon.so* -/usr/lib/libfastcommon.so* %files devel %defattr(-,root,root,-) diff --git a/src/Makefile.in b/src/Makefile.in index c662e4345c9506b66fd69c2ebce8fb61e5bf1d7e..be3bbef9834f08a895bf00e3cf48ddd8a9cd48f7 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -72,7 +72,9 @@ install: install -m 755 $(SHARED_LIBS) $(TARGET_LIB) 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: rm -f $(ALL_OBJS) $(ALL_PRGS) $(ALL_LIBS)