Correction for the fix for Bug 3508 - Persistent storage support breaks Linux compatibility. GCC_SURGE
authorMike Kinghan <mikek@symbian.org>
Wed, 04 Aug 2010 15:41:26 +0100
branchGCC_SURGE
changeset 95 285922d13199
parent 94 c5cd29a4600d
child 104 fba9a3afb710
Correction for the fix for Bug 3508 - Persistent storage support breaks Linux compatibility. A 2nd `make install' will fail attempting to create symlink libnvmemmory.so already created by 1st install. Install should pre-emptively delete it.
symbian-qemu-0.9.1-12/model-libraries/nvmemmory/target.mak
--- a/symbian-qemu-0.9.1-12/model-libraries/nvmemmory/target.mak	Wed Aug 04 11:52:10 2010 +0100
+++ b/symbian-qemu-0.9.1-12/model-libraries/nvmemmory/target.mak	Wed Aug 04 15:41:26 2010 +0100
@@ -46,6 +46,7 @@
 install: $(targ)
 	if [ ! -d "$(DESTDIR)$(libdir)" ]; then mkdir -p "$(DESTDIR)$(libdir)"; fi && \
 	$(INSTALL) -m 755 $(targ) "$(DESTDIR)$(libdir)" && \
+	rm -f "$(DESTDIR)$(libdir)/$(libname)" && \
 	ln -s "$(DESTDIR)$(libdir)/$(targ)" "$(DESTDIR)$(libdir)/$(libname)"
 
 distclean: clean