summaryrefslogtreecommitdiff
path: root/devel/elftoolchain/patches/patch-ac
diff options
context:
space:
mode:
authoragc <agc>2011-11-20 06:25:17 +0000
committeragc <agc>2011-11-20 06:25:17 +0000
commitaeb8184e5d178d38dd160aec5526228455d715e7 (patch)
tree1ad28bbaf4162e22e8c6780564f76ada79ed3020 /devel/elftoolchain/patches/patch-ac
parent666cfdf891eb00aff00bf8074399f15bb7852924 (diff)
downloadpkgsrc-aeb8184e5d178d38dd160aec5526228455d715e7.tar.gz
Initial import of elftoolchain-0.5.1 into the packages collection.
A BSD-licensed implementation of compilation tools (nm, ar, as, ld, etc.) for the ELF object format. This release contains BSD-licensed implementations of the "libdwarf" and "libelf" libraries, and of the "addr2line", "ar", "brandelf", "c++filt", "elfcopy", "elfdump", "findtextrel", "mcs", "nm", "ranlib", "readelf", "size", "strings" and "strip" program development utilities. The release also contains API and utility reference documentation (300+ manual entries in all), and contains test suites for some of these released utilities and libraries. With thanks to jkoshy for all the help.
Diffstat (limited to 'devel/elftoolchain/patches/patch-ac')
-rw-r--r--devel/elftoolchain/patches/patch-ac27
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/elftoolchain/patches/patch-ac b/devel/elftoolchain/patches/patch-ac
new file mode 100644
index 00000000000..c587557cc19
--- /dev/null
+++ b/devel/elftoolchain/patches/patch-ac
@@ -0,0 +1,27 @@
+$NetBSD: patch-ac,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $
+
+Broken YY_NO_INPUT is only needed for NetBSD before 5.99.21
+
+--- common/_elftc.h 2011/11/19 10:48:54 1.1
++++ common/_elftc.h 2011/11/19 10:54:13
+@@ -163,6 +163,7 @@
+
+ #if defined(__NetBSD__)
+
++#include <sys/param.h>
+ #include <sys/endian.h>
+
+ #define ELFTC_BYTE_ORDER _BYTE_ORDER
+@@ -170,7 +171,11 @@
+ #define ELFTC_BYTE_ORDER_BIG_ENDIAN _BIG_ENDIAN
+
+ #define ELFTC_HAVE_STRMODE 1
+-#define ELFTC_BROKEN_YY_NO_INPUT 1
++#if __NetBSD_Version__ <= 599002100
++/* from src/doc/CHANGES: flex(1): Import flex-2.5.35 [christos 20091025] */
++/* and 5.99.21 was from Wed Oct 21 21:28:36 2009 UTC */
++# define ELFTC_BROKEN_YY_NO_INPUT 1
++#endif
+ #endif /* __NetBSD __ */
+
+ #endif /* _ELFTC_H */