Ticket #43564: patch-Makefile.diff
File patch-Makefile.diff, 2.8 KB (added by harciga, 11 years ago) |
---|
-
Makefile
old new 67 67 68 68 lib${PROJECT}.so.${SOVERSION}: ${OBJECTS} 69 69 $(ECHO) LD $@ 70 $(QUIET)${CC} -Wl,- soname,lib${PROJECT}.so.${SOMAJOR} -shared ${LDFLAGS} -o $@${OBJECTS} ${LIBS}70 $(QUIET)${CC} -Wl,-dylib_install_name,${LIBDIR}/lib${PROJECT}.${SOMAJOR}.dylib -dynamiclib -current_version ${SOVERSION} -compatibility_version ${SOMAJOR} ${LDFLAGS} -o lib${PROJECT}.${SOVERSION}.dylib ${OBJECTS} ${LIBS} 71 71 72 72 clean: 73 73 $(QUIET)rm -rf ${OBJECTS} ${PROJECT}-${VERSION}.tar.gz \ 74 74 ${DOBJECTS} lib${PROJECT}.a lib${PROJECT}-debug.a ${PROJECT}.pc doc \ 75 75 lib$(PROJECT).so.${SOVERSION} lib${PROJECT}-debug.so.${SOVERSION} .depend \ 76 76 ${PROJECTNV}-${VERSION}.tar.gz version.h *gcda *gcno $(PROJECT).info gcov \ 77 .version-checks77 lib${PROJECT}.${SOVERSION}.dylib .version-checks 78 78 $(QUIET)${MAKE} -C tests clean 79 79 $(QUIET)${MAKE} -C po clean 80 80 … … 86 86 87 87 lib${PROJECT}-debug.so.${SOVERSION}: ${DOBJECTS} 88 88 $(ECHO) LD $@ 89 $(QUIET)${CC} -Wl,- soname,lib${PROJECT}.so.${SOMAJOR} -shared ${LDFLAGS} -o $@${DOBJECTS} ${LIBS}89 $(QUIET)${CC} -Wl,-dylib_install_name,${LIBDIR}/lib${PROJECT}.${SOMAJOR}.dylib -dynamiclib -current_version ${SOVERSION} -compatibility_version ${SOMAJOR} ${LDFLAGS} -o lib${PROJECT}.${SOVERSION}.dylib ${DOBJECTS} ${LIBS} 90 90 91 91 debug: options ${PROJECT}-debug 92 92 … … 139 139 install-shared: shared 140 140 $(ECHO) installing shared library 141 141 $(QUIET)mkdir -m 755 -p ${DESTDIR}${LIBDIR} 142 $(QUIET)install -m 644 lib${PROJECT}. so.${SOVERSION}${DESTDIR}${LIBDIR}143 $(QUIET)ln -sf lib${PROJECT}. so.${SOVERSION} ${DESTDIR}${LIBDIR}/lib${PROJECT}.so.${SOMAJOR}|| \142 $(QUIET)install -m 644 lib${PROJECT}.${SOVERSION}.dylib ${DESTDIR}${LIBDIR} 143 $(QUIET)ln -sf lib${PROJECT}.${SOVERSION}.dylib ${DESTDIR}${LIBDIR}/lib${PROJECT}.${SOMAJOR}.dylib || \ 144 144 echo "Failed to create lib${PROJECT}.so.${SOMAJOR}. Please check if it exists and points to the correct version of lib${PROJECT}.so." 145 $(QUIET)ln -sf lib${PROJECT}. so.${SOVERSION} ${DESTDIR}${LIBDIR}/lib${PROJECT}.so|| \145 $(QUIET)ln -sf lib${PROJECT}.${SOVERSION}.dylib ${DESTDIR}${LIBDIR}/lib${PROJECT}.dylib || \ 146 146 echo "Failed to create lib${PROJECT}.so. Please check if it exists and points to the correct version of lib${PROJECT}.so." 147 147 148 148 install: options po install-static install-shared install-headers … … 159 159 uninstall: uninstall-headers 160 160 $(ECHO) removing library file 161 161 $(QUIET)rm -f ${LIBDIR}/lib${PROJECT}.a ${LIBDIR}/lib${PROJECT}.so.${SOVERSION} \ 162 ${LIBDIR}/lib${PROJECT}.so.${SOMAJOR} ${LIBDIR}/lib${PROJECT}.so 162 ${LIBDIR}/lib${PROJECT}.so.${SOMAJOR} ${LIBDIR}/lib${PROJECT}.so \ 163 ${LIBDIR}/lib${PROJECT}.${SOVERSION}.dylib \ 164 ${LIBDIR}/lib${PROJECT}.${SOMAJOR}.dylib ${LIBDIR}/lib${PROJECT}.dylib 163 165 $(QUIET)${MAKE} -C po uninstall 164 166 165 167 uninstall-headers: