cpio: added patch for gcc 4.3
This commit is contained in:
parent
f55cf88db7
commit
f03c7cccc4
@ -1 +1,2 @@
|
|||||||
|
c84cc915f9b6070077f36aa2ecefaa6f cpio-2.9-gcc43-inline.patch
|
||||||
e387abfdae3a0b9a8a5f762db653a96d cpio-2.9.tar.bz2
|
e387abfdae3a0b9a8a5f762db653a96d cpio-2.9.tar.bz2
|
||||||
|
@ -4,11 +4,13 @@
|
|||||||
|
|
||||||
name=cpio
|
name=cpio
|
||||||
version=2.9
|
version=2.9
|
||||||
release=1
|
release=2
|
||||||
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
|
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2
|
||||||
|
cpio-2.9-gcc43-inline.patch)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $name-$version
|
cd $name-$version
|
||||||
|
patch -p0 -i $SRC/cpio-2.9-gcc43-inline.patch
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--with-rmt=/usr/lib/tar/rmt \
|
--with-rmt=/usr/lib/tar/rmt \
|
||||||
|
32
cpio/cpio-2.9-gcc43-inline.patch
Normal file
32
cpio/cpio-2.9-gcc43-inline.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
http://lists.gnu.org/archive/html/bug-cpio/2007-09/msg00002.html
|
||||||
|
|
||||||
|
--- lib/argp.h.orig 2007-09-25 11:04:18.000000000 +0200
|
||||||
|
+++ lib/argp.h 2007-09-25 11:06:24.000000000 +0200
|
||||||
|
@@ -580,7 +580,11 @@
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# ifndef ARGP_EI
|
||||||
|
-# define ARGP_EI extern __inline__
|
||||||
|
+# if defined __GNUC_STDC_INLINE__
|
||||||
|
+# define ARGP_EI extern __inline__ __attribute__((__gnu_inline__))
|
||||||
|
+# else
|
||||||
|
+# define ARGP_EI extern __inline__
|
||||||
|
+# endif
|
||||||
|
# endif
|
||||||
|
|
||||||
|
ARGP_EI void
|
||||||
|
--- lib/argp-fmtstream.h.orig 2007-09-25 11:06:49.000000000 +0200
|
||||||
|
+++ lib/argp-fmtstream.h 2007-09-25 11:07:35.000000000 +0200
|
||||||
|
@@ -198,8 +198,12 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ARGP_FS_EI
|
||||||
|
+#ifdef __GNUC_STDC_INLINE__
|
||||||
|
+#define ARGP_FS_EI extern inline __attribute__((__gnu_inline__))
|
||||||
|
+#else
|
||||||
|
#define ARGP_FS_EI extern inline
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
ARGP_FS_EI size_t
|
||||||
|
__argp_fmtstream_write (argp_fmtstream_t __fs,
|
Loading…
Reference in New Issue
Block a user