On Wed, 2009-04-29 at 21:40 +0200, Vincent Torri wrote:
> i have built cegcc from svn (see my previous mail about doc not being 
> built to know what i did for the build).
> 
> libstdc++.la mentions that library_names is libstdc++.dll.a but that file 
> is not built. This is annoying as when linking a project containing 
> c++ files, using libtool, the link fails because that file does not exist.

This appears to be a name conflict between two files :
dannypc: {263} pwd
/home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/build-arm-mingw32ce
dannypc: {264} find . -name libstdc++.la
./gcc/arm-mingw32ce/libstdc++-v3/src/.libs/libstdc++.la
./gcc/arm-mingw32ce/libstdc++-v3/src/libstdc++.la
./mingwdll/libstdc++/libstdc++.la
dannypc: {265} 

The mingwdll/libstdc++/libstdc++.la is the last one that gets installed,
so it overwrites the other one.

The fix is not hard (see attachment) : it installs the missing libstdc
++.dll.a file (and two others).

Another fix might be not to install the second .la file. I think the
approach in this fix is better (using DLLs is preferable).

Please confirm that this works, then I'll commit.

        Danny
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
Index: libgcc/Makefile
===================================================================
--- libgcc/Makefile	(revision 1225)
+++ libgcc/Makefile	(working copy)
@@ -37,3 +37,4 @@
 	mkdir -p ${DLL_DIR}
 	cp ${BUILD_DIR}/${MYDIR}/${ME}.def ${DLL_DIR}
 	cp ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll ${DLL_DIR}
+	cp ${BUILD_DIR}/${MYDIR}/${ME}.dll.a ${DLL_DIR}/${ME}.dll.a
Index: libsupc++/Makefile
===================================================================
--- libsupc++/Makefile	(revision 1225)
+++ libsupc++/Makefile	(working copy)
@@ -44,5 +44,10 @@
 	mkdir -p ${DLL_DIR} ${DEVICE_DIR}
 	cp ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll ${DEVICE_DIR}
 	cp ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll.stripped ${DEVICE_DIR}
+	#
+	# Because of name conflict, remove the earlier *.la file
+	# that comes from the static library build in gcc/
+	#
 	rm -f ${DLL_DIR}/${ME}.la
 	cp ${BUILD_DIR}/${MYDIR}/${ME}.la ${DLL_DIR}/${ME}.la
+	cp ${BUILD_DIR}/${MYDIR}/${ME}.dll.a ${DLL_DIR}/${ME}.dll.a
Index: libstdc++/Makefile
===================================================================
--- libstdc++/Makefile	(revision 1225)
+++ libstdc++/Makefile	(working copy)
@@ -45,5 +45,10 @@
 	cp ${BUILD_DIR}/${MYDIR}/${ME}.def ${DLL_DIR}
 	cp ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll ${DLL_DIR}
 	cp ${BUILD_DIR}/${MYDIR}/${ME}-${DLLVERSION}.dll.stripped ${DEVICE_DIR}
+	#
+	# Because of name conflict, remove the earlier *.la file
+	# that comes from the static library build in gcc/
+	#
 	rm -f ${DLL_DIR}/${ME}.la
 	cp ${BUILD_DIR}/${MYDIR}/${ME}.la ${DLL_DIR}/${ME}.la
+	cp ${BUILD_DIR}/${MYDIR}/${ME}.dll.a ${DLL_DIR}/${ME}.dll.a
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to