gnutls-devel
[Top][All Lists]
Advanced

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

[gnutls-dev] A tiny patch for libtasn1 (0.2.17)


From: Bernard Leak
Subject: [gnutls-dev] A tiny patch for libtasn1 (0.2.17)
Date: Tue, 17 Jan 2006 23:09:17 +0000
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051222)

Dear List,
the Makefiles for libtasn (more precisely, the Makefile for the
'src' directory) don't work if building in a separate source directory: the
libtasn1.h file from the 'lib' directory is added through -I ../lib
which won't work (as the .h file isn't generated) unless the build tree and the
source tree are the same.

I offer the following patch: this is for the distributed version, so it patches
both Makefile.am and Makefile.in, though from the viewpoint of this list
the 'real' patch is to Makefile.am only.  As can be seen, it's really very
simple - just forcing a reference to $(srcdir).  You might prefer to use
$(top_srcdir)/lib instead, of course.

  As far as I have noticed, this is the only problematic place, but I
can't promise I've not missed something.  Anyway, it seems to
work for me, and is certainly an improvement.

Bernard.
\#Output of diff -ru libtasn1-0.2.17/src/Makefile.am{-old,}
--- libtasn1-0.2.17/src/Makefile.am-old 2006-01-17 22:58:41.000000000 +0000
+++ libtasn1-0.2.17/src/Makefile.am     2006-01-17 22:59:10.000000000 +0000
@@ -1,4 +1,4 @@
-INCLUDES = -I../lib
+INCLUDES = -I$(srcdir)/../lib
 
 EXTRA_DIST = pkix.asn pkix_asn1_tab.c asn1Coding_test.asn asn1Coding_test.asg
 

\#Output of diff -ru libtasn1-0.2.17/src/Makefile.in{-old,}
--- libtasn1-0.2.17/src/Makefile.in-old 2006-01-17 22:58:41.000000000 +0000
+++ libtasn1-0.2.17/src/Makefile.in     2006-01-17 22:59:10.000000000 +0000
@@ -198,7 +198,7 @@
 sharedstatedir = @sharedstatedir@
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
-INCLUDES = -I../lib
+INCLUDES = -I$(srcdir)/../lib
 EXTRA_DIST = pkix.asn pkix_asn1_tab.c asn1Coding_test.asn asn1Coding_test.asg
 asn1Parser_SOURCES = asn1Parser.c  
 asn1Parser_LDADD = ../lib/libtasn1.la


reply via email to

[Prev in Thread] Current Thread [Next in Thread]