[Gdal-dev] Changes to libtool (or something) break MinGW build
Andrey Kiselev
dron at ak4719.spb.edu
Sat Apr 28 13:55:14 EDT 2007
On Fri, Apr 27, 2007 at 11:39:32PM +0300, Ari Jolma wrote:
> >>c:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
> >>cannot find /c/progetti/gdal/gdalMing/frmts/o/.libs/EnvisatFile.o
>
> this can also be fixed (assuming mingw is on C: drive) in libtool by:
>
> $ECHO "$obj" | sed -e "s/\/c\//c:\//" >> $output
>
> the | sed -e "s/\/c\//c:\//" has to be added by hand
>
> that's line 6114 at least in my libtool, just after "for obj in
> $save_libobjs"
>
> But the basic problem is probably a recent change somewhere which
> causes libtool to use full paths for _some_ of the object files that
> it writes into .libs/libgdal.la.lnkscript.
I have reproduced this problem and I think it is mingw issue. It can be
fixed with the following patch, but I don't want to check it in, I would
like to dig into this problem more.
--- GNUmakefile (revision 11369)
+++ GNUmakefile (working copy)
@@ -3,13 +3,13 @@
include GDALmake.opt
-GDAL_OBJ = $(GDAL_ROOT)/frmts/o/*.o \
- $(GDAL_ROOT)/gcore/*.o \
- $(GDAL_ROOT)/port/*.o \
- $(GDAL_ROOT)/alg/*.o
+GDAL_OBJ = ./frmts/o/*.o \
+ ./gcore/*.o \
+ ./port/*.o \
+ ./alg/*.o
ifeq ($(OGR_ENABLED),yes)
-GDAL_OBJ += $(GDAL_ROOT)/ogr/ogrsf_frmts/o/*.o
+GDAL_OBJ += ./ogr/ogrsf_frmts/o/*.o
endif
include ./ogr/file.lst
Best regards,
Andrey
--
Andrey V. Kiselev
ICQ# 26871517
More information about the Gdal-dev
mailing list