[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#321350: [patch] Another gnat issue, Makefile needs porting



Hi,

turned out there was another issue preventing the libgnat-4.0 package
from being built: gnat apparently has non-perfect autoconf support and
hardcodes some things according to the detected arch/system.  By
default, the shared libgnat is not being build, but the Debian build
system expects it to be.

Adding a section for gnu/x86 to gcc/ada/Makefile.in solves this problem.

I have attached a patch against hurd-changes.dpatch which should fix
both gnat issues (the one described in this mail and the originally
reported MAXPATHLEN issue)


cheers,

Michael

-- 
Michael Banck
Debian Developer
mbanck@debian.org
http://www.advogato.org/person/mbanck/diary.html
--- debian/patches/hurd-changes.dpatch.orig	2005-08-08 01:43:30.450082224 +0200
+++ debian/patches/hurd-changes.dpatch	2005-08-08 01:45:06.538474568 +0200
@@ -29,6 +29,8 @@
 # DP: Define MAXPATHLEN and PATH_MAX.
 # DP:
 # DP: Add some #pragma weak for _pthread_* functions.
+# DP:
+# DP: Add support for GNU/Hurd to ada's Makefile.
 
 --- gcc/config/gnu.h.orig	2005-06-22 13:23:24.000000000 +0200
 +++ gcc/config/gnu.h	2005-06-22 13:24:18.000000000 +0200
@@ -77,6 +79,19 @@
  #endif
 
 
+--- gcc/ada/adaint.c.orig	2005-08-01 23:10:02.000000000 +0200
++++ gcc/ada/adaint.c	2005-08-01 23:11:10.000000000 +0200
+@@ -261,6 +261,10 @@
+ #include <sys/param.h>
+ #endif
+ 
++#ifndef MAXPATHLEN
++#define MAXPATHLEN 4096
++#endif
++
+ #define GNAT_MAX_PATH_LEN MAXPATHLEN
+ 
+ #endif
 --- gcc/gthr-posix.h.orig	2005-07-19 13:58:06.000000000 +0200
 +++ gcc/gthr-posix.h	2005-07-23 17:28:14.000000000 +0200
 @@ -40,6 +40,13 @@
@@ -93,3 +108,20 @@
  #include <pthread.h>
  #include <unistd.h>
  
+--- gcc/ada/Makefile.in.orig	2005-08-08 01:41:25.134133144 +0200
++++ gcc/ada/Makefile.in	2005-08-08 01:43:02.662306608 +0200
+@@ -856,6 +856,14 @@
+   endif
+ endif
+ 
++ifeq ($(strip $(filter-out %86 gnu%,$(arch) $(osys))),)
++  THREADSLIB = -lpthread
++  GNATLIB_SHARED = gnatlib-shared-dual
++  GMEM_LIB = gmemlib
++  PREFIX_OBJS = $(PREFIX_REAL_OBJS)
++  LIBRARY_VERSION := $(LIB_VERSION)
++endif
++
+ ifeq ($(strip $(filter-out %86 freebsd%,$(arch) $(osys))),)
+   LIBGNAT_TARGET_PAIRS = \
+   a-intnam.ads<a-intnam-freebsd.ads \

Reply to: