[gnutls-dev] A tiny patch for libtasn1 (0.2.17)
Bernard Leak
bernard at brenda-arkle.demon.co.uk
Wed Jan 18 00:17:32 CET 2006
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 Leak.
--
Before they made me, they broke the mould
-------------- next part --------------
\#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
More information about the Gnutls-dev
mailing list