Package: dpkg
Version: 1.4.1.4

Hi,

I had to modify dpkg in order to make it cross compile (LOCALEDIR wasn't defined
correctly otherwise since dpkg-cross overrides CFLAGS).  I have also added mips
to the archtable.

I still have some problems though, I can't find where _LIBC should be defined.
As far as I know the define is only locally defined in glibc (not installed). Do
you know where it should be?

Regrads,
Ulf

diff -ur dpkg-1.4.1.4.orig/archtable dpkg-1.4.1.4/archtable
--- dpkg-1.4.1.4.orig/archtable Sun Nov  1 17:01:27 1998
+++ dpkg-1.4.1.4/archtable      Sun Jul 18 04:09:40 1999
@@ -24,3 +24,4 @@
 arm    arm     arm
 ppc    powerpc powerpc
 powerpc        powerpc powerpc
+mips   mips    mips
diff -ur dpkg-1.4.1.4.orig/main/Makefile.am dpkg-1.4.1.4/main/Makefile.am
--- dpkg-1.4.1.4.orig/main/Makefile.am  Sun Nov  1 17:06:12 1998
+++ dpkg-1.4.1.4/main/Makefile.am       Sun Jul 18 17:23:54 1999
@@ -8,17 +8,18 @@
 
 ## Various options
 
-CFLAGS                 = @CFLAGS@ @CWARNS@ -g $(XCFLAGS) 
-DLOCALEDIR=\"$(localedir)\"
-OPTCFLAGS              = @CFLAGS@ @OPTCFLAGS@ @CWARNS@ -g $(XCFLAGS) 
-DLOCALEDIR=\"$(localedir)\"
+CFLAGS                 = @CFLAGS@ @CWARNS@ -g $(XCFLAGS)
+OPTCFLAGS              = @CFLAGS@ @OPTCFLAGS@ @CWARNS@ -g $(XCFLAGS)
 LDFLAGS                        = @LDFLAGS@ $(XLDFLAGS)
 LIBS                   = @INTLLIBS@ @LIBS@ $(XLIBS)
 
-CXXFLAGS               = @CXXFLAGS@ @CWARNS@ -g $(XCXXFLAGS) 
-DLOCALEDIR=\"$(localedir)\"
-OPTCXXFLAGS            = @CXXFLAGS@ @OPTCFLAGS@ @CWARNS@ -g $(XCXXFLAGS) 
-DLOCALEDIR=\"$(localedir)\"
+CXXFLAGS               = @CXXFLAGS@ @CWARNS@ -g $(XCXXFLAGS)
+OPTCXXFLAGS            = @CXXFLAGS@ @OPTCFLAGS@ @CWARNS@ -g $(XCXXFLAGS)
 
 DEFS                   = -I$(top_srcdir)/include -I$(top_srcdir) -I$(srcdir) \
                          -I$(top_builddir) -I$(top_builddir)/include -I. \
-                         -I$(top_srcdir)/intl -I$(top_builddir)/intl @DEFS@
+                         -I$(top_srcdir)/intl -I$(top_builddir)/intl \
+                         -DLOCALEDIR=\"$(localedir)\" @DEFS@
 
 ## Automake variables
 

Reply via email to