summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl-5.8.8/native-no-gdbminc.patch
blob: f00fa2cc1713ec07fed435df8468d6b583f21cc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
If you have a /usr/include/gdbm/ndbm.h host on the header then the configure
script adds -I/usr/include/gdbm to the ccflags even though gdbm support is
disabled. Prevent perl from doing this so we don't get cross compile badness
errors while building perl.

--- perl-5.8.8/Configure	2007/05/06 23:42:18	1.1
+++ perl-5.8.8/Configure	2007/05/06 23:42:48
@@ -20033,8 +20033,8 @@
     # ndbm.h header in /usr/include/gdbm/ndbm.h.
     if $test -f /usr/include/gdbm/ndbm.h; then
 	echo '<gdbm/ndbm.h> found.'
-        ccflags="$ccflags -I/usr/include/gdbm"
-        cppflags="$cppflags -I/usr/include/gdbm"
+#        ccflags="$ccflags -I/usr/include/gdbm"
+#        cppflags="$cppflags -I/usr/include/gdbm"
         t_ndbm=$define
     fi
     ;;