Matthias Klose writes: > Please could you have a look? It seems that gnatlink does not search > the gcc_lib_dir. Btw, did you see this report?
Yes, I did see the report as I have subscribed to gcc-3.4. I had a quick look at your request. It appears that the problem came from changing /usr/lib/gcc-lib into /usr/lib/gcc; the following file should fix it. I'm going to build with this patch, but it'll take several hours. The file name is debian/patches/ada-gcc-lib.dpatch. -- Ludovic Brenta. #! /bin/sh -e # DP: Change /usr/lib/gcc-lib to /usr/lib/gcc so that the compiler # finds symboloc links to shared libraries. dir= if [ $# -eq 3 -a "$2" = '-d' ]; then pdir="-d $3" dir="$3/" elif [ $# -ne 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi case "$1" in -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0 cd ${dir}gcc && autoconf ;; -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 rm ${dir}gcc/configure ;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 esac exit 0 --- gcc/ada/Makefile.adalib~ 2004-07-25 19:59:36.000000000 +0200 +++ gcc/ada/Makefile.adalib 2004-07-25 19:59:44.000000000 +0200 @@ -53,9 +53,9 @@ target = $(shell $(CC) -dumpmachine) version = $(shell $(CC) -dumpversion) -ADA_INCLUDE_PATH = $(GNAT_ROOT)lib/gcc-lib/$(target)/$(version)/adainclude/ -GCC_INCLUDE_PATH = $(GNAT_ROOT)lib/gcc-lib/$(target)/$(version)/gcc-include/ -ADA_OBJECTS_PATH = $(GNAT_ROOT)lib/gcc-lib/$(target)/$(version)/adalib/ +ADA_INCLUDE_PATH = $(GNAT_ROOT)lib/gcc/$(target)/$(version)/adainclude/ +GCC_INCLUDE_PATH = $(GNAT_ROOT)lib/gcc/$(target)/$(version)/gcc-include/ +ADA_OBJECTS_PATH = $(GNAT_ROOT)lib/gcc/$(target)/$(version)/adalib/ vpath %.adb $(ADA_INCLUDE_PATH) vpath %.ads $(ADA_INCLUDE_PATH)